Re:Ask HN: What cool NLP project are you working on?
by tangled_zans on Sunday March 20, 2016 @10:21PM
(#11325795)
Wow, thanks for sharing! I did look at CoreNLP before and the fact that it's in Java has put me off, so this will be useful :)
Due to the project not being written in Java, we obviously needed a way to communicate with CoreNLP without the cost of calling java for every job.
The solution in the end was to fork an existing (Java) project that wraps CoreNLP and exposes it over HTTP.
The fork adds:
- support for JSON (the original was XML only)
- packages it for Debian
- defaults to "today" for relative dates
- adds a utility class 'RegexNERValidator' to allow testing/quoting of mapping files for CoreNLP's RegexNER, to allow checking a file can be used by RegexNER before the main CoreNLP process is restarted.
The result is at https://github.com/Koalephant/StanfordCoreNLPHTTPServer
Please note: I do not usually work in Java, so I'm well aware there are likely better ways to achieve some/many/all things this project does. If you feel inclined to improve it, send a PR (preferably with some indication of why its an improvement, if its not an obvious bug/feature improvement).