I want to use the Stanford NLP API to parse text and extract temporal expressions. The Core NLP package comes with SUTime, a library for recognizing and normalizing time expressions. Following the example on their site, I have easily found the expressions I want.
However, the online demo has a checkbox for 'include range', which is very useful to me. How can I pass this flag to the library API? I can't seem to find it in their documentation.
After combing through the Java NLP mailing list archives, I found this page which explains the issue. The way to pass options into the TimeAnnotator is to add properties, in this case:
I hope this helps someone in the future, maybe even myself :-)