public class TextPatternAnnotation extends TextPattern
TextPattern tp = new TextPatternAnnotation("lemma", new TextPatternWildcard("bla*"));
MAX_UNLIMITED
Constructor and Description |
---|
TextPatternAnnotation(String propertyName,
TextPattern input) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
String |
toString() |
BLSpanQuery |
translate(QueryExecutionContext context)
Translate this TextPattern into a BLSpanQuery.
|
clausesToString
public TextPatternAnnotation(String propertyName, TextPattern input)
public BLSpanQuery translate(QueryExecutionContext context) throws InvalidQuery
TextPattern
translate
in class TextPattern
context
- query execution context to useRegexpTooLarge
- if a regular expression was too largeInvalidQuery
- if something else was wrong about the query (e.g. error in regex expression)public boolean equals(Object obj)
equals
in class TextPattern
public int hashCode()
hashCode
in class TextPattern
public String toString()
toString
in class TextPattern
Copyright © 2020 Instituut voor Nederlandse Taal (INT). All rights reserved.