You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the argument Exclude is passed as None, it fails in line 196:
print self.text[tlist[0].start:exclude[0][0]] #Fails if exclude is None
print self.text[exclude[0][0]:exclude[0][1]]
print self.text[exclude[0][1]:tlist[-1].end]
Traceback (most recent call last):
...
...
File "/home/h/Desktop/IBEnt2/src/text/sentence.py", line 196, in tag_entity
print self.text[tlist[0].start:exclude[0][0]]
TypeError: 'NoneType' object has no attribute 'getitem'
The text was updated successfully, but these errors were encountered:
When the argument Exclude is passed as None, it fails in line 196:
print self.text[tlist[0].start:exclude[0][0]] #Fails if exclude is None
print self.text[exclude[0][0]:exclude[0][1]]
print self.text[exclude[0][1]:tlist[-1].end]
Traceback (most recent call last):
...
...
File "/home/h/Desktop/IBEnt2/src/text/sentence.py", line 196, in tag_entity
print self.text[tlist[0].start:exclude[0][0]]
TypeError: 'NoneType' object has no attribute 'getitem'
The text was updated successfully, but these errors were encountered: