public class TokensToAnnotation extends Processor
Modifier and Type | Field and Description |
---|---|
char |
displayFormSeperator
The character that seperates the displayform from the token or tag.
|
int |
maxTokenSpan
Maximum annotation size to consider (in terms of token count).
|
boolean |
prefixWithDisplayForm
Should the token (or tag) be prefixed with display form ?
|
boolean |
prefixWithTag
Should the token be prefixed with matched annotation tag ? ie.
|
java.lang.String |
suffix
The suffix for the created displayform.
|
java.lang.String |
tag
Tag for this processor.
|
char |
tagSeperator
The character that seperates the tag and token.
|
java.lang.String |
tagsToMatch
The list of tags to match seperated by ",".
|
int |
windowSize
Number of tokens this processor runs on.
|
Constructor and Description |
---|
TokensToAnnotation(java.lang.String name,
java.lang.String fields)
Builds a TokensToAnnotation processor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
finalize() |
protected void |
init(java.lang.String name,
int sentenceMaxSize,
java.lang.String tag,
java.lang.String[] tagsToMatch,
boolean prefixWithTag,
char tagSeperator,
boolean prefixWithDisplayForm,
char displayFormSeperator,
int maxTokenSpan,
java.lang.String suffix,
java.lang.String[] fields) |
void |
init(java.lang.String name,
java.lang.String[] fields)
Initialize the processor
|
checkResource, destroy, getName, init
public java.lang.String tag
public java.lang.String tagsToMatch
public int windowSize
public boolean prefixWithTag
public char tagSeperator
public boolean prefixWithDisplayForm
public char displayFormSeperator
public int maxTokenSpan
public java.lang.String suffix
public TokensToAnnotation(java.lang.String name, java.lang.String fields)
name
- the processor's name.fields
- fields on which the processor runs.public void init(java.lang.String name, java.lang.String[] fields)
protected void finalize()
finalize
in class java.lang.Object
protected void init(java.lang.String name, int sentenceMaxSize, java.lang.String tag, java.lang.String[] tagsToMatch, boolean prefixWithTag, char tagSeperator, boolean prefixWithDisplayForm, char displayFormSeperator, int maxTokenSpan, java.lang.String suffix, java.lang.String[] fields)
Copyright © 2013 Dassault Systèmes, All Rights Reserved.