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

srl for large for text file #4

Open
anithachacko opened this issue Dec 11, 2016 · 8 comments
Open

srl for large for text file #4

anithachacko opened this issue Dec 11, 2016 · 8 comments

Comments

@anithachacko
Copy link

I have been trying to use SRL for a large text file containing many sentences. I am getting the following error:

Traceback (most recent call last):
File "C:\Users\anithachacko\Downloads\main_pjt_code1.py", line 370, in
tagged=StringIO(annotator.getAnnotations(string1)['srl'])
File "C:\Python27\lib\site-packages\practnlptools\tools.py", line 219, in getAnnotations
pos+=[senna_tag[1].strip()]
IndexError: list index out of range

@profversaggi
Copy link

profversaggi commented Dec 11, 2016 via email

@anithachacko
Copy link
Author

Is there any other approach to this. I am doing a question answer system which fetch a wikipedia page from web and store the content in a text file. I need this entire text file.

@profversaggi
Copy link

profversaggi commented Dec 11, 2016 via email

@anithachacko
Copy link
Author

Hi,
I would be really grateful if you can share anything that would help me with this process.

@profversaggi
Copy link

profversaggi commented Dec 11, 2016 via email

@anithachacko
Copy link
Author

I am trying to read the contents from a URL ,clean it using BeautifulSoup, tokenize them and store it in a text file. I need to perform SRL on this entire text file to extract TMP,LOC and PER Labels.

@profversaggi
Copy link

profversaggi commented Dec 11, 2016 via email

@anithachacko
Copy link
Author

Thanks for the help.

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