public class GoldAnnotationStatsCalculator
extends JCasAnnotator_ImplBase
Modifier and Type | Field and Description |
---|---|
int |
entityMentionCount |
int |
entityMentionPairCount |
|
entityMentionPairTypes |
static java.lang.String |
goldViewName |
int |
relationArgumentDistance |
|
relationTypes |
int |
sentenceCount |
static java.lang.String |
systemViewName |
static java.lang.String |
targetRelationType |
int |
tokenCount |
Constructor and Description |
---|
GoldAnnotationStatsCalculator() |
Modifier and Type | Method and Description |
---|---|
void |
collectionProcessComplete() |
private void |
countDistanceBetweenArguments(JCas systemView,
JCas goldView) |
private void |
countEntities(JCas jCas) |
private void |
countEntityMentionPairs(JCas jCas,
JCas goldView) |
private void |
countEntityMentionPairTypes(JCas jCas,
JCas goldView) |
private void |
countRelationTypes(JCas jCas) |
private void |
countSentences(JCas jCas) |
private void |
countTokens(JCas jCas) |
private static java.lang.String |
getEntityType(int typeId) |
static int |
getTokenDistance(JCas systemView,
IdentifiedAnnotation arg1,
IdentifiedAnnotation arg2) |
void |
initialize(UimaContext context) |
void |
process(JCas jCas) |
public static final java.lang.String goldViewName
public static final java.lang.String systemViewName
public static final java.lang.String targetRelationType
public int tokenCount
public int sentenceCount
public int entityMentionCount
public int entityMentionPairCount
public int relationArgumentDistance
publicrelationTypes
publicentityMentionPairTypes
public void initialize(UimaContext context) throws ResourceInitializationException
ResourceInitializationException
public void collectionProcessComplete() throws AnalysisEngineProcessException
AnalysisEngineProcessException
public void process(JCas jCas) throws AnalysisEngineProcessException
AnalysisEngineProcessException
private void countTokens(JCas jCas)
private void countSentences(JCas jCas)
private void countEntityMentionPairs(JCas jCas, JCas goldView)
private void countEntityMentionPairTypes(JCas jCas, JCas goldView)
private void countRelationTypes(JCas jCas)
private void countDistanceBetweenArguments(JCas systemView, JCas goldView)
private void countEntities(JCas jCas)
public static int getTokenDistance(JCas systemView, IdentifiedAnnotation arg1, IdentifiedAnnotation arg2)
private static java.lang.String getEntityType(int typeId)