-
Notifications
You must be signed in to change notification settings - Fork 141
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
integrated tokenizer #47
Comments
Could give me some examples. |
I am passing it a plain text, either a file or a string. It invokes the tokenizer for the given language and get the output in CoNLL format for reading by the parser. I enclose a fix to the code. |
@attardi that's seems feasible. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A simple change is needed in order to integrate a tokenizer.
In file utils/transform.py, to method CoNLL.transform.init(), add the optional parameter
and then set
and in CoNLL.load(), change it to use it:
You can then pass as reader a nltk tokenizer or a Stanza tokenizer.
I use this code to interface tp Stanza:
tokenizer.py.txt
The text was updated successfully, but these errors were encountered: