Skip to content

DateMatcher and MultiDateMatcher getAnchorDateMonth returns incorrect value after setting the parameter #5673

@dkincaid

Description

@dkincaid

Description

After creating a DateMatcher or MultiDateMatcher annotator and using setAnchorDateMonth() to set the parameter, a call to getAnchorDateMonth() returns a different value than was set. It appears to return one less than whatever integer was set.

DateMatcher myMatcher = new DateMatcher();
myMatcher.setAnchorDateMonth(5);
int wrongMonth = myMatcher.getAnchorDateMonth();
// wrongMonth will be 4 instead of 5

Context

Adding these parameters to the DateMatcher annotator implementation in the R package sparknlp

Your Environment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions