public class NGrams extends AbstractProcessor
| Modifier and Type | Field and Description |
|---|---|
(package private) String |
key |
(package private) static org.slf4j.Logger |
log |
(package private) Integer |
n |
(package private) String |
prefix |
context| Constructor and Description |
|---|
NGrams() |
public String getKey()
@Parameter(required=true, description="The attribute which is to be split into n-grams") public void setKey(String key)
key - the key to setpublic Integer getN()
@Parameter(required=true, defaultValue="3", description="The length of the n-grams that are to be created") public void setN(Integer n)
n - the n to setpublic String getPrefix()
@Parameter(required=false, defaultValue="", description="An optional prefix that is to be prepended for all n-gram names before these are added to the data item") public void setPrefix(String prefix)
prefix - the prefix to setCopyright © 2014. All rights reserved.