public class EventEventAllPairRelPrinter extends Object
Modifier and Type | Class and Description |
---|---|
static class |
EventEventAllPairRelPrinter.RelationSnippetPrinter
Print gold standard relations and their context.
|
Constructor and Description |
---|
EventEventAllPairRelPrinter() |
Modifier and Type | Method and Description |
---|---|
static String |
convertToString(org.apache.uima.jcas.JCas jCas,
BaseToken baseToken)
If token is an event, add event markers.
|
static String |
getSentenceWithMarkedArgs(org.apache.uima.jcas.JCas jCas,
Sentence sent,
org.apache.uima.jcas.tcas.Annotation arg1,
org.apache.uima.jcas.tcas.Annotation arg2) |
static String |
getTokensBetween(org.apache.uima.jcas.JCas jCas,
Sentence sent,
org.apache.uima.jcas.tcas.Annotation left,
String leftType,
org.apache.uima.jcas.tcas.Annotation right,
String rightType,
int contextSize)
Return tokens between arg1 and arg2 as string
|
static void |
main(String[] args) |
public static String getTokensBetween(org.apache.uima.jcas.JCas jCas, Sentence sent, org.apache.uima.jcas.tcas.Annotation left, String leftType, org.apache.uima.jcas.tcas.Annotation right, String rightType, int contextSize) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
contextSize
- number of tokens to include on the left of arg1 and on the right of arg2org.apache.uima.analysis_engine.AnalysisEngineProcessException
public static String convertToString(org.apache.uima.jcas.JCas jCas, BaseToken baseToken) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
baseToken
- token to be consideredorg.apache.uima.analysis_engine.AnalysisEngineProcessException
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.