public class NGram extends Processor
Modifier and Type | Field and Description |
---|---|
boolean |
addCanonicalForm
Add canonical form of the ngram
|
boolean |
differentiateNGrams
Differentiates ngrams
|
java.lang.String[] |
fromTags
Input tags
|
java.lang.String[] |
ifTags
If not null, these tags are required to create a ngram
|
int |
maxLength
Maximum ngram length
|
int |
minLength
Minimum ngram length
|
boolean |
multivalued
Multivalued ?
|
java.lang.String[] |
skipTags
If not null, skip these tags to create the ngram
|
java.lang.String[] |
unlessTags
If not null, these tags are forbudden to create a ngram
|
Constructor and Description |
---|
NGram(java.lang.String name,
java.lang.String fields) |
Modifier and Type | Method and Description |
---|---|
static NGramForm |
deserialize(java.lang.String annotation)
Deserialize a CSV-encoded ngram display form
|
protected void |
finalize() |
static java.lang.String |
getCanonicalTag() |
static java.lang.String |
getTag() |
void |
init(java.lang.String name,
java.lang.String[] fields)
Initialize the processor
|
checkResource, destroy, getName, init
public int minLength
public int maxLength
public java.lang.String[] fromTags
public java.lang.String[] ifTags
public java.lang.String[] unlessTags
public java.lang.String[] skipTags
public boolean multivalued
public boolean addCanonicalForm
public boolean differentiateNGrams
public void init(java.lang.String name, java.lang.String[] fields)
protected void finalize()
finalize
in class java.lang.Object
public static java.lang.String getTag()
public static java.lang.String getCanonicalTag()
public static NGramForm deserialize(java.lang.String annotation)
annotation
- The annotation's display formCopyright © 2013 Dassault Systèmes, All Rights Reserved.