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

testing SRL on plain text #486

Open
sarschu opened this issue Apr 5, 2018 · 3 comments
Open

testing SRL on plain text #486

sarschu opened this issue Apr 5, 2018 · 3 comments

Comments

@sarschu
Copy link

sarschu commented Apr 5, 2018

Hi,
I wondered how I can use the pretrained SRL model on unlabeled text. Is there a specific format I have to convert my test files to?

Cheers
Sarah

@kordjamshidi
Copy link
Member

Hi Sarah, though this should be easily doable currently this is not supported. However, why don't you use the cogcomp demo http://cogcomp.org/page/demo_view/srl if you want to test a small piece of text?

@sarschu
Copy link
Author

sarschu commented Apr 9, 2018

Hi,
thanks for the link to the demo page. I didn't find a way to export the results from there. Also, in case the SRL works reasonably well for my data, I would like to integrate it into a workflow.
Do you have any pointer on how to implement a data reader for plain text files?

@kordjamshidi
Copy link
Member

kordjamshidi commented Apr 10, 2018

Sarah, below link is the code that is used to read the data. you can read your plain text into List<TextAnnotation>. Each sentence which is simply a string is read into a TextAnnotation object and then this list is formed and passed to the learning models. https://github.com/CogComp/saul/blob/master/saul-examples/src/main/java/edu/illinois/cs/cogcomp/saulexamples/data/SRLDataReader.java

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