public class AssertAnnotations extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AssertAnnotations.InternalJCasHolder |
static class |
AssertAnnotations.InternalStringReader |
Constructor and Description |
---|
AssertAnnotations() |
Modifier and Type | Method and Description |
---|---|
static String |
asCopyableString(Collection<String> aCollection,
boolean aLinebreak) |
static void |
assertAnomaly(String[] aExpected,
Collection<? extends Anomaly> aActual) |
static void |
assertChunks(String[] aExpected,
Collection<Chunk> aActual) |
static void |
assertConstituents(String[] aExpectedMapped,
String[] aExpectedOriginal,
Collection<Constituent> aActual) |
static void |
assertCoreference(String[][] aExpected,
Collection<CoreferenceChain> aActual) |
static void |
assertDependencies(String[] aExpected,
Collection<Dependency> aActual) |
static void |
assertLemma(String[] aExpected,
Collection<Lemma> aActual) |
static void |
assertMorph(String[] aExpected,
Collection<MorphologicalFeatures> aActual) |
static void |
assertMorpheme(String[] aExpected,
Collection<Morpheme> aActual)
Deprecated.
|
static void |
assertNamedEntity(String[] aExpected,
Collection<NamedEntity> aActual) |
static void |
assertPennTree(String[] aExpected,
Collection<PennTree> aActual) |
static void |
assertPennTree(String aExpected,
PennTree aActual) |
static void |
assertPennTree(String aExpected,
String aActual) |
static void |
assertPOS(String[] aExpectedMapped,
String[] aExpectedOriginal,
Collection<POS> actual) |
static void |
assertSemanticField(String[] aExpected,
Collection<SemanticField> aActual) |
static void |
assertSemanticPredicates(String[] aExpected,
Collection<SemanticPredicate> aActual)
Deprecated.
|
static void |
assertSemPred(String[] aExpected,
Collection<SemPred> aActual) |
static void |
assertSentence(String[] aExpected,
Collection<Sentence> aActual) |
static void |
assertStem(String[] aExpected,
Collection<Stem> aActual) |
static void |
assertSyntacticFunction(String[] aExpectedOriginal,
Collection<Constituent> aActual) |
static void |
assertTagset(Class<?> aComponent,
Class<?> aLayer,
String aName,
String[] aExpected,
org.apache.uima.jcas.JCas aJCas) |
static void |
assertTagset(Class<?> aLayer,
String aName,
String[] aExpected,
org.apache.uima.jcas.JCas aJCas) |
static void |
assertTagsetMapping(Class<?> aComponent,
Class<?> aLayer,
String aName,
String[] aDefaultMapped,
org.apache.uima.jcas.JCas aJCas) |
static void |
assertTagsetMapping(Class<?> aComponent,
Class<?> aLayer,
String aName,
String[] aDefaultMapped,
org.apache.uima.jcas.JCas aJCas,
boolean aExact) |
static void |
assertTagsetMapping(Class<?> aLayer,
String aName,
String[] aDefaultMapped,
org.apache.uima.jcas.JCas aJCas) |
static void |
assertTagsetMapping(Class<?> aLayer,
String aName,
String[] aDefaultMapped,
org.apache.uima.jcas.JCas aJCas,
boolean aExact) |
static void |
assertTagsetParser(Class<?> aLayer,
String aName,
String[] aDefaultMapped,
org.apache.uima.jcas.JCas aJCas) |
static void |
assertToken(String[] aExpected,
Collection<Token> aActual) |
static void |
assertTransformedText(String normalizedText,
String inputText,
String language,
org.apache.uima.analysis_engine.AnalysisEngineDescription... aEngines) |
static void |
assertValid(Collection<Message> messages) |
static List<Message> |
assertValid(org.apache.uima.jcas.JCas jcas,
Class<? extends Check>... aExtras) |
static <T extends Comparable<T>> |
deduplicateAndSort(Collection<T> aCollection) |
public static void assertAnomaly(String[] aExpected, Collection<? extends Anomaly> aActual)
public static void assertToken(String[] aExpected, Collection<Token> aActual)
public static void assertSentence(String[] aExpected, Collection<Sentence> aActual)
public static void assertPOS(String[] aExpectedMapped, String[] aExpectedOriginal, Collection<POS> actual)
public static void assertLemma(String[] aExpected, Collection<Lemma> aActual)
@Deprecated public static void assertMorpheme(String[] aExpected, Collection<Morpheme> aActual)
assertMorph(String[], Collection)
aExpected
- expected morph tagsaActual
- actual morph tagspublic static void assertMorph(String[] aExpected, Collection<MorphologicalFeatures> aActual)
public static void assertStem(String[] aExpected, Collection<Stem> aActual)
public static void assertNamedEntity(String[] aExpected, Collection<NamedEntity> aActual)
public static void assertConstituents(String[] aExpectedMapped, String[] aExpectedOriginal, Collection<Constituent> aActual)
public static void assertChunks(String[] aExpected, Collection<Chunk> aActual)
public static void assertSyntacticFunction(String[] aExpectedOriginal, Collection<Constituent> aActual)
public static <T extends Comparable<T>> List<T> deduplicateAndSort(Collection<T> aCollection)
public static void assertDependencies(String[] aExpected, Collection<Dependency> aActual)
public static void assertPennTree(String[] aExpected, Collection<PennTree> aActual)
@Deprecated public static void assertSemanticPredicates(String[] aExpected, Collection<SemanticPredicate> aActual)
assertSemPred(String[], Collection)
aExpected
- expected semantic predicatesaActual
- actual semantic predicatespublic static void assertSemPred(String[] aExpected, Collection<SemPred> aActual)
public static void assertSemanticField(String[] aExpected, Collection<SemanticField> aActual)
public static void assertCoreference(String[][] aExpected, Collection<CoreferenceChain> aActual)
public static void assertTagset(Class<?> aLayer, String aName, String[] aExpected, org.apache.uima.jcas.JCas aJCas)
public static void assertTagset(Class<?> aComponent, Class<?> aLayer, String aName, String[] aExpected, org.apache.uima.jcas.JCas aJCas)
public static void assertTagsetMapping(Class<?> aLayer, String aName, String[] aDefaultMapped, org.apache.uima.jcas.JCas aJCas) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
org.apache.uima.analysis_engine.AnalysisEngineProcessException
public static void assertTagsetMapping(Class<?> aLayer, String aName, String[] aDefaultMapped, org.apache.uima.jcas.JCas aJCas, boolean aExact) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
org.apache.uima.analysis_engine.AnalysisEngineProcessException
public static void assertTagsetMapping(Class<?> aComponent, Class<?> aLayer, String aName, String[] aDefaultMapped, org.apache.uima.jcas.JCas aJCas) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
org.apache.uima.analysis_engine.AnalysisEngineProcessException
public static void assertTagsetMapping(Class<?> aComponent, Class<?> aLayer, String aName, String[] aDefaultMapped, org.apache.uima.jcas.JCas aJCas, boolean aExact) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
org.apache.uima.analysis_engine.AnalysisEngineProcessException
public static void assertTagsetParser(Class<?> aLayer, String aName, String[] aDefaultMapped, org.apache.uima.jcas.JCas aJCas) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
org.apache.uima.analysis_engine.AnalysisEngineProcessException
public static void assertTransformedText(String normalizedText, String inputText, String language, org.apache.uima.analysis_engine.AnalysisEngineDescription... aEngines) throws org.apache.uima.resource.ResourceInitializationException
org.apache.uima.resource.ResourceInitializationException
@SafeVarargs public static List<Message> assertValid(org.apache.uima.jcas.JCas jcas, Class<? extends Check>... aExtras)
public static void assertValid(Collection<Message> messages)
public static String asCopyableString(Collection<String> aCollection, boolean aLinebreak)
Copyright © 2007–2018 Ubiquitous Knowledge Processing (UKP) Lab, Technische Universität Darmstadt. All rights reserved.