Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: empty separator #2

Open
ninjakx opened this issue Jan 11, 2021 · 0 comments
Open

ValueError: empty separator #2

ninjakx opened this issue Jan 11, 2021 · 0 comments

Comments

@ninjakx
Copy link

ninjakx commented Jan 11, 2021

---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-79-5ef70a0f5d68> in <module>()
     24   if len(pos) > 0:
     25     # print(define_labels(pos, sent, labels, bbox, class_value, classification))
---> 26     sent, labels, bbox = define_labels(pos, sent, labels, bbox, class_value, classification)
     27 
     28   # # Define labels for company name

<ipython-input-71-e92669a96825> in define_labels(pos, sent, labels, bbox, class_value, classification, label_other)
     12       # print(sent[i_pos], "==>", str(class_value))
     13 
---> 14       sent[i_pos] = intersperse(sent[i_pos].split(str(class_value)), str(class_value))
     15       # This split leaves a white space element at the initial or final position, so we have to remove it
     16       if sent[i_pos][0].isspace() or len(sent[i_pos][0])==0: sent[i_pos] = sent[i_pos][1:]

ValueError: empty separator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant