Open
Description
I try next simple code
String template = "[]|[]{2}";
TokenSequencePattern pattern = TokenSequencePattern.compile(template);
Annotation document = new Annotation("word1 word2");
new TokenizerAnnotator(false, "en").annotate(document);
List<CoreLabel> tokens = document.get(CoreAnnotations.TokensAnnotation.class);
if (pattern.getMatcher(tokens).matches())
System.out.println("OK!");
else
System.out.println("BAD :(");
and it prints "BAD :(" instead of expected "OK"