File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/edu/stanford/nlp/time/rules Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 585585 # i.e. 3-months old, "four years", "four minutes"
586586 { pattern: ( ($NUM) /to|-/ ($NUM) [ "-" ]? ([ { temporal::IS_TIME_UNIT } ]) (?: [ "-" ]? /old/ )? ),
587587 result: Duration( $1, $2, $3) }
588- { pattern: ( ($NUM) [ "-" ]? ([ "(" ] $NUM [ ")" ])? ([ { temporal::IS_TIME_UNIT } ]) (?: [ "-" ]? /old/ )? ),
589- result: Duration( NIL, $1, $3 ) }
588+ { pattern: ( ($NUM) [ "-" ]? (?: [ "(" ] $NUM [ ")" ])? ([ { temporal::IS_TIME_UNIT } ]) (?: [ "-" ]? /old/ )? ),
589+ result: Duration( NIL, $1, $2 ) }
590590
591591 # i.e. "a decade", "a few decades", NOT "a few hundred decades"
592592 { pattern: ( (?: /the/ /past|next|following|coming|last|first|final/ | /a|an/ )? (/couple/ /of/? ) ([ { temporal::IS_TIME_UNIT } ]) ),
You can’t perform that action at this time.
0 commit comments