Class RoleLabeler

java.lang.Object
  extended by RoleLabeler

public class RoleLabeler
extends Object


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

Field Detail

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
Constructor Detail

RoleLabeler

public RoleLabeler()
Method Detail

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)