SUTime outputs the wrong week of the year

85 views Asked by At

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 is interested in trying, here where you can try different expression: SUTime I tried to dig deeper in the library implementation but in vain. Any clue on how to fix it?

1

There are 1 answers

1
Igor On

Just a wild guess, if this happens systematically, is that the week number is zero-based. Not sure if it was SUTime or HeidelTime, or another one, but think I encountered this with some temporal analyzer at some point (i.e. particular values being 0-based)