Questions tagged [sutime]

SUTime is a Java library for recognizing and normalizing time expressions.

SUTime is a library for recognizing and normalizing time expressions. It is part of the library suite.

For more information, see the Stanford University homepage.

28 questions
1
vote
1 answer

In Stanford's NLP core API, how do I get a temporal expression range?

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…
Yuval
  • 7,987
  • 12
  • 40
  • 54
0
votes
0 answers

Installing JAVA dependencies for Python package on Heroku

I am deploying a Python app that has a package requiring some Java dependencies. I added a requirements.txt file as well as a pom.xml file to my repo and it seems that the Java dependencies aren't being picked up. Is there anything I need to add to…
0
votes
1 answer

Configure SUTime for StanfordNLP in Spanish - Java

I'm having trouble setting the SUTime in the spanish version that comes with in the stanford-spanish-corenlp-2018-10-05-models.jar In Stanford documents it says that the options ner.applyNumericClassifiers = true and ner.useSUTime = true is only…
0
votes
1 answer

Stanford NLP's SUTime: Unable to capture certain date formats

I am using the python wrapper of NLP Stanford's SUTime. So far comparing the results to other date parsers like duckling, dateparser's search_dates, parsedatetime and natty, SUTime gives the most reliable results. However, it fails to capture some…
Afsan Abdulali Gujarati
  • 1,375
  • 3
  • 18
  • 30
0
votes
1 answer

SUTime outputs the wrong week of the year

I was trying to use Stanford Temporal Tagger: SUTime for a NER task. It's a pretty decent tools. But it fails in a relatively easy date tagging related to the week of year. Here is an example: The 2nd week of 2017 is tagged as 2017-W01. If anyone…
chikhawi9
  • 51
  • 1
  • 5
0
votes
1 answer

SUTime in Python deployed as web service is getting restarted on each api hit

I have deployed python SUTime as a web service in REDHAT ENTERPRISE LIMITED 7 OS. (installation was done as per the link https://github.com/FraBle/python-sutime and created a server code for the same ) The python version used is 2.7.5. On each api…
0
votes
1 answer

how tid values are set in timeml Specification Language?

In timeml Specification Language there is a value for every timex tag named tid. like: bad financial week for Asia how they should initialized at starting of a text. Do tid tags follow any…
ali
  • 124
  • 8
0
votes
1 answer

How to get the right date with SUtime?

I have a Strings like this one for example: " I will meet you on Jun 12 and give you your 1500 " The result i got is 2 dates BUT I ONLY NEED THE JUN 12: JUN 12 [from char offset 14 to 20] --> 2017-06-12 1500 [from char offset 40 to 44] -->…
0
votes
1 answer

core-nlp's SUTime Timex3 value differs from the GUI output

I was trying to use the 'SUTime' functionaly from core-nlp. If I try to use this from the online demo for a 'sampleInput' From next month, we will have meeting on every friday, from 3:00 pm to 4:00 pm.” which results in (with reference date:…
Betafish
  • 1,212
  • 3
  • 20
  • 45
0
votes
1 answer

Custom rule for SUTime is not working

I'm trying to annotate things like in 10 minutes, but for some reason I can't get it work. I'm using a custom model file for my rules which is loaded after defs.sutime.txt, english.sutime.txt and english.holidays.sutime.txt. My current rule is…
vsakos
  • 492
  • 8
  • 19
0
votes
1 answer

How to set reference time in stanford SUTime

I am using the Stanford NLPCore SU time libraries to build a temporal parser. I am having issues with setting the reference time. Here is my code : public static String dateFormatString = "yyyy-MM-dd HH:mm"; private static void setup() { try { …
Shreya Bhat
  • 311
  • 2
  • 3
  • 13
0
votes
1 answer

How to write custom rules for sutime in stanford temporal tagger?

Stanford temporal tagger is working fine for most cases. For example "I should be in school tomorrow by 9'o clock." is having 9'o clock as time. But SUTime is not identifying it :( So I want to add rule based on this. Any suggestions ? I'm using…
Abhishek Vijjapu
  • 42
  • 1
  • 1
  • 9
-1
votes
2 answers

Stanford NLP NER, Sentiment, SUTime Performance Issue

The text in the main method seem to be taking more than 2 seconds to return NER. I am not an expert in NLP and this code is not at all scalable. I have added comments in 2 places where the bottleneck i have identified. Can you please suggest…
1
2