Skip to content

Commit b3c47a0

Browse files
committed
make quantity in parenthesis non capture group
1 parent 010bfad commit b3c47a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/edu/stanford/nlp/time/rules/english.sutime.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -585,8 +585,8 @@
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 } ]) ),

0 commit comments

Comments
 (0)