public class CRFCPGenerator
extends com.exalead.gni.GNIObject
Constructor and Description |
---|
CRFCPGenerator()
Instanciates a new CRFCPGenerator
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
_dump(java.lang.String resourcePath)
Serialize the CRFCPGenerator to disk.
|
void |
addMotTagPredicate(java.lang.String prefix,
int offset,
java.lang.String tag,
boolean useTag,
boolean useDisplay)
Uses the annotation of given tag as predicate.
|
void |
addTokenTypePredicate(java.lang.String prefix,
int offset)
Adds the token's type as predicate.
|
void |
addTokenWordPredicate(java.lang.String prefix,
int offset)
Adds the token's word as predicate.
|
boolean |
dump(java.lang.String resourcePath)
Serialize the CRFCPGenerator to disk.
|
protected void |
finalize() |
protected void |
init()
Native initialisation.
|
public boolean dump(java.lang.String resourcePath)
resourcePath
- the path in which the file should be created.protected boolean _dump(java.lang.String resourcePath)
resourcePath
- the file.public void addTokenWordPredicate(java.lang.String prefix, int offset)
prefix
- the key's prefix (should be unique, shouldn't be prefix of another prefix ex : prefix "wr" with word "at" and prefix "w" with word "rat" would give us two keys "wrat" for different predicates => this is BAD). Cannot be an empty string.offset
- the position to take into account relative to the observation's position in the sequence (observation's is 0).public void addTokenTypePredicate(java.lang.String prefix, int offset)
prefix
- the key's prefix (should be unique). Cannot be an empty string.offset
- the position to take into account relative to the observation's position in the sequence (observation's is 0).public void addMotTagPredicate(java.lang.String prefix, int offset, java.lang.String tag, boolean useTag, boolean useDisplay)
prefix
- the key's prefix (should be unique). In some instances it is ok not to put a prefix (for example with some processors for which the tag can act as prefix).offset
- the position to take into account relative to the observation's position in the sequence (observation's is 0).tag
- the tag of the annotation which will generate the predicate.useTag
- also use annotation's tag ?.useDisplay
- also use annotation's displayform ?.protected void init()
protected void finalize()
finalize
in class java.lang.Object
Copyright © 2013 Dassault Systèmes, All Rights Reserved.