public class ArgContextProvider extends Object
Constructor and Description |
---|
ArgContextProvider() |
Modifier and Type | Method and Description |
---|---|
static String |
getBIOContext(org.apache.uima.jcas.JCas jCas,
Sentence sentence,
IdentifiedAnnotation arg1,
String leftType,
IdentifiedAnnotation arg2,
String rightType,
int contextSize) |
static String |
getEventEventPositionContext(org.apache.uima.jcas.JCas jCas,
Sentence sent,
IdentifiedAnnotation event1,
IdentifiedAnnotation event2)
Position features for event-event relations
|
static String |
getEventTimePositionContext(org.apache.uima.jcas.JCas jCas,
Sentence sent,
IdentifiedAnnotation time,
IdentifiedAnnotation event)
Position features for event-time relations
|
static String |
getPosContext(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)
Print POS tags from left to right.
|
static String |
getRegions(org.apache.uima.jcas.JCas jCas,
Sentence sent,
org.apache.uima.jcas.tcas.Annotation left,
org.apache.uima.jcas.tcas.Annotation right,
int contextSize)
Return tokens between arg1 and arg2 as string
|
static String |
getTokenContext(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)
Print words from left to right.
|
public static String getEventTimePositionContext(org.apache.uima.jcas.JCas jCas, Sentence sent, IdentifiedAnnotation time, IdentifiedAnnotation event)
public static String getEventEventPositionContext(org.apache.uima.jcas.JCas jCas, Sentence sent, IdentifiedAnnotation event1, IdentifiedAnnotation event2)
public static String getRegions(org.apache.uima.jcas.JCas jCas, Sentence sent, org.apache.uima.jcas.tcas.Annotation left, org.apache.uima.jcas.tcas.Annotation right, int contextSize)
contextSize
- number of tokens to include on the left of arg1 and on the right of arg2public static String getTokenContext(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)
contextSize
- number of tokens to include on the left of arg1 and on the right of arg2public static String getPosContext(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)
contextSize
- number of tokens to include on the left of arg1 and on the right of arg2public static String getBIOContext(org.apache.uima.jcas.JCas jCas, Sentence sentence, IdentifiedAnnotation arg1, String leftType, IdentifiedAnnotation arg2, String rightType, int contextSize)
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.