-
Notifications
You must be signed in to change notification settings - Fork 8
Switch between NER models #12
Comments
Hi @ikillbombs ! I'm glad you find this wrapper/server so helpful. 😄 You want the option to load in any number of NER models, right? Also, what kind of XML output would you find helpful? Do you want XML for the NER's output or for all of them? Are you looking for something like the XML output given from http://nlp.stanford.edu:8080/corenlp ? You can switch between parser types pretty easily if you're using the start_server.sh script, I believe the second argument to it is the full path to the parser model you'd like to use. Also, would you be interested in sharing your C++ client? 😄 Thanks, |
If I look at the code, I see that it's only for the lex parser: https://github.com/EducationalTestingService/stanford-thrift/blob/master/src/StanfordCoreNLPHandler.java#L36 Yes, there are several options on the Stanford parser. According to the lexparser.sh file in the Stanford Parser package. The options are: penn, oneline, rootSymbolOnly, words, wordsAndTags, dependencies, typedDependencies, typedDependenciesCollapsed, latexTree, xmlTree, collocations, semanticGraph, conllStyleDependencies, conll2007. Now it's only a tree. I've installed thrift into a xCode project on my mac.
In the directory of 'Stanford Thrift' type:
It generates the gen-cpp directory. Copy this directory into your project. In your cpp file:
|
Hi. For the parser options, if you take a look at the README: https://github.com/EducationalTestingService/stanford-thrift/blob/master/README_parser.md there's an option for Thanks for sharing your C++ client! I'll add it. 😄 |
Ah nice, but still I cannot switch in between the loaded classifiers
Your welcome! |
That's because I haven't done anything to accommodate that yet. 😕 Do you want the ability to load any number of NER models; as in, having the choice to load any one of them vs. any two of them vs. all three (and potentially more as they are developed)? |
It's a good idea to load everyone of them, because they all work totally different. If I use the NER, the 4 class for me works best with names of persons/organisations and 7 class for specific parsing. So I use all of them. I think other developers will do the same. |
Hi! Any number of NER models (along with your choice of parser and tagger models) can now be loaded when the server starts from a configuration file. Please take a look at this when you get a chance; in the meantime I'll close this and if you find anything wrong with it, definitely open an issue. 😄 Now on to other issues, LOL. Thanks! |
Freaking sweet! TNX allot! |
Hi,
At first I want to thank you for this wonderful wrapper. It saves me allot of time I've rewritten my c++ code to use this.
I see that all the models are loaded into the wrapper. How can I select one of these? Another question is about the output. Can I get an XML output of the wrapper? And can I switch between parser types?
With kind regards,
i_kill_bombs
PS.
your wrapper works fine in cpp.
The text was updated successfully, but these errors were encountered: