public class DtrRelPrinter extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DtrRelPrinter.DocTimeRelSnippetPrinter
Print gold standard relations and their context.
|
Constructor and Description |
---|
DtrRelPrinter() |
Modifier and Type | Method and Description |
---|---|
static String |
getEventContext(org.apache.uima.jcas.JCas jCas,
Sentence sent,
EventMention event,
String marker,
int contextSize)
Print context from left to right.
|
static String |
getEventPosContext(org.apache.uima.jcas.JCas jCas,
Sentence sent,
EventMention event,
String marker,
int contextSize)
Print context from left to right.
|
static void |
main(String[] args) |
public static String getEventContext(org.apache.uima.jcas.JCas jCas, Sentence sent, EventMention event, String marker, int contextSize)
contextSize
- number of tokens to include on the left of arg1 and on the right of arg2public static String getEventPosContext(org.apache.uima.jcas.JCas jCas, Sentence sent, EventMention event, String marker, int contextSize)
contextSize
- number of tokens to include on the left of arg1 and on the right of arg2Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.