-
Notifications
You must be signed in to change notification settings - Fork 228
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
TokensRegex or regexner annotators in corenlp Python #33
Comments
This may be helpful: http://nlp.stanford.edu/pubs/tokensregex-tr-2014.pdf |
Update (2020-01): this repo ( The standordnlp (Python) repo -- which is provided by Stanford and provides Pythonic access to a CoreNLP server -- is more recent and well-supported. Superseding my older answer below, I just posted an Issue at Can we call RegexNER in stanfordnlp? it is possible! :-D I edited my
My tab-delimited
Usage (Python 2.7 venv; Arch Linux):
Just a demo (I've been trying it out today), but this repo ( P.S. Here is that output, in a more readable ("wrapped") format:
|
Could got it working only with CoreNLP version 2014-08-27 and not the new version. In addition, had been using Java 11 jdk on Mac OS X. Needed 3 more jars namely 1. Javax.xml.bind 2. activation.jar 3. jaxb-impl2.2.jar that I copied into the unzipped folder of stanfordcorenlp. Updated my corenlp.py to add these 3 jars as well. Finally the setup worked and helped parse the custom entities. |
I am wondering if there is any documentation of how to use regexner and TokensRegex annotators in Python wrapper of corenlp. And also, how can I use my own customised regular expression?
The text was updated successfully, but these errors were encountered: