Wraps CoreNLP's SUTime annotator in a minimal service
Build and run locally:
wget http://nlp.stanford.edu/software/stanford-english-corenlp-2016-10-31-models.jar
brew install gradle
gradle clean shadow
java -cp 'build/libs/stanford-corenlp-1.0-all.jar:stanford-corenlp-3.7.0-models.jar' it.skim.Main
curl -X POST --data-binary @test.json localhost:3000/
Examples of input and output values are in available in the tests
directory. To run the tests, add stanford-corenlp-3.7.0-models.jar
to the classpath and then run gradle test
.
Docker (optional)
docker build -t skimit/sia-ms-stanford .
docker login
docker push skimit/sia-ms-stanford
Deployment (after doing the Docker steps):
./scripts/deployment_createApplicationVersion.sh latest
./scripts/deployment_updateEnvironment.sh latest dev
- at some point we should start using the git commit as the application version (as we do on circle) rather than
latest
Assuming current date is 2010-10-10 10:10:10, then
last year --> 2009-01-01
a minute ago --> 2010-10-10T10:09:10.000
since last week --> 2010-09-27
this week --> 2010-10-04
a week ago --> 2010-10-03T10:10:10.000
Known failures:
since Tuesday --> 2010-10-12 // refers to next Tuesday
Stanford CoreNLP - Stanford's Suite of NLP Tools
Copyright © 2009-2015 The Board of Trustees of The Leland Stanford Junior University. All Rights Reserved.
DOCUMENTATION
Please look at the URL below for documentation for Stanford CoreNLP:
http://nlp.stanford.edu/software/corenlp.shtml
LICENSE
// // StanfordCoreNLP -- a suite of NLP tools // Copyright © 2009-2015 The Board of Trustees of // The Leland Stanford Junior University. All Rights Reserved. // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License // as published by the Free Software Foundation; either version 2 // of the License, or (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software Foundation, // Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // // For more information, bug reports, fixes, contact: // Christopher Manning // Dept of Computer Science, Gates 1A // Stanford CA 94305-9010 // USA //
2016-10-31 3.7.0 KBP Annotator, improved coreference, Arabic pipeline
2015-12-09 3.6.0 Improved coreference, OpenIE integration, Stanford CoreNLP server
2015-04-20 3.5.2 Switch to Universal dependencies, add Chinese coreference system to CoreNLP
2015-01-29 3.5.1 NER, dependency parser, SPIED improvements; general bugfixes
2014-10-26 3.5.0 Upgrade to Java 1.8; add annotators for dependency parsing and relation extraction
2014-08-27 3.4.1 Add Spanish models
2014-06-16 3.4 Add shift reduce parser
2014-01-04 3.3.1 Bugfix release
2013-11-12 3.3.0 Add sentiment model, minor sutime improvements
2013-06-19 3.2.0 New RNN parser model, more efficient tagger
2013-04-04 1.3.5 Speed improvements, coref improvements, Chinese version, -nthreads option
2012-11-12 1.3.4 Improved ner model and dependency code, now possible to change annotator pool for later StanfordCoreNLP objects
2012-07-09 1.3.3 Minor bug fixes
2012-05-22 1.3.2 Improvements to sutime
2012-03-09 1.3.1 Now supports caseless models (available as DLC)
2011-12-16 1.3.0 Threadsafe! Bugs in time annotation fixed
2011-09-14 1.2.0 Time expression recognizer added to ner annotator Output bugfixes Parser can now substitute for tagger
2011-06-19 1.1.0 Improved coref release
2011-05-15 1.0.4 More efficient dcoref data structure Supports already-tokenized input text
2011-04-17 1.0.3 Compatible with other releases Support loading arbitrary annotators Tagger bug fixes, such as "EOS" token
2010-11-11 1.0.2 Remove wn.jar
2010-11-11 1.0.1 Add xml removal
2010-10-07 1.0 Initial release