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
Tika 1913 - MIT Information Extraction itegrated with Tika #108
Conversation
|
||
import java.io.File; | ||
import java.lang.reflect.Method; | ||
import java.util.*; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
replace * imports with actual imports
@chrismattmann done :) |
thanks @manalishah will merge soon. |
LOG.warn("{} does not exist", modelPath); | ||
}else { | ||
Class<?> namedEntityExtractorClass = Class.forName(NamedEntityExtractor_Class); | ||
extractorInstance = namedEntityExtractorClass.getDeclaredConstructor(new Class[]{String.class}).newInstance("/Users/manali/cs599_dr/MITIE/MITIE-models/english/ner_model.dat"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@manalishah
Please use path from function parameter instead of the hardcoded string.
Perhaps you forgot to modify in last moment ;-) ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh no!!! @thammegowda thanks! its fixed now x_x
This pull request comprises of yet another NamedEntityRecognizer that uses the open-source trained models and functions of MIT-nlp to perform information extraction. I have provided it as a runtime binding to MITIE.
In order to test it out, you can download mitie-resources and follow the steps or build it from source from mit-nlp/MITIE
@chrismattmann