Class RoleLabeler
java.lang.Object
RoleLabeler
public class RoleLabeler
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
nn_enc_name
static final String nn_enc_name
- See Also:
- Constant Field Values
role_enc_name
static final String role_enc_name
- See Also:
- Constant Field Values
nn_model_name
static final String nn_model_name
- See Also:
- Constant Field Values
role_model_name
static final String role_model_name
- See Also:
- Constant Field Values
attlist_name
static final String attlist_name
- See Also:
- Constant Field Values
USE_ROLE_CLASSIFIER
static final boolean USE_ROLE_CLASSIFIER
- See Also:
- Constant Field Values
USE_NATIVE
static final boolean USE_NATIVE
- See Also:
- Constant Field Values
framenet
FrameNet framenet
lemmatizer
Lemmatizer lemmatizer
nn_classifier
Classifier nn_classifier
role_classifier
Classifier role_classifier
model_dir
String model_dir
model_jar
JarFile model_jar
N_SENT
int N_SENT
totalResult
CompareResult totalResult
totalUnlabeledResult
CompareResult totalUnlabeledResult
RoleLabeler
public RoleLabeler()
getResource
InputStream getResource(String fn)
labelNode
String labelNode(FeatureList allFeatures)
pruneTree
ArrayList<Node> pruneTree(PSTree tree,
TokenNode pred)
matchTreeToSpans
HashMap<Node,Span> matchTreeToSpans(AnnotatedText text)
removeTrailingPunctuation
void removeTrailingPunctuation(String[] tokens,
AnnotationLayer layer)
test
void test()
labelRawText
void labelRawText(String rawText)
labelRawTextFromStdin
void labelRawTextFromStdin()
labelSentence
AnnotationLayer labelSentence(AnnotatedText text,
Function<Pair<FeatureList,Node>,String> guide)
train
void train(String nnFileName,
String roleFileName)
main
public static void main(String[] argv)