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

sentence.py : tag_entity() -> TypeError #12

Closed
ManuelLobo opened this issue Jun 18, 2016 · 0 comments
Closed

sentence.py : tag_entity() -> TypeError #12

ManuelLobo opened this issue Jun 18, 2016 · 0 comments

Comments

@ManuelLobo
Copy link

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'

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

2 participants