Package org.apache.uima.ruta.seed

Examples of org.apache.uima.ruta.seed.DefaultSeeder


    List<AnnotationFS> fp = new ArrayList<AnnotationFS>();
    List<AnnotationFS> fn = new ArrayList<AnnotationFS>();
    List<AnnotationFS> tp = new ArrayList<AnnotationFS>();

    // need basics in this test cas too:
    final DefaultSeeder scanner = new DefaultSeeder();
    scanner.seed(test.getDocumentText(), test);
    testAnnotations = expand(testAnnotations, test, getWordTypes(test));
    runAnnotations = expand(runAnnotations, run, getWordTypes(run));

    for (AnnotationFS eachTest : testAnnotations) {
      boolean found = false;
View Full Code Here


    List<FeatureStructure> tp = new ArrayList<FeatureStructure>();

    if (test.getAnnotationIndex(
            test.getTypeSystem().getType("org.apache.uima.ruta.type.RutaBasic")).size() == 0) {
      // need basics in this test cas too:
      final DefaultSeeder scanner = new DefaultSeeder();
      scanner.seed(test.getDocumentText(), test);
    }
    for (FeatureStructure eachTest : testFSs) {
      boolean found = false;
      for (FeatureStructure eachRun : runFSs) {
        if (match(eachTest, eachRun, wordTypes)) {
View Full Code Here

    List<AnnotationFS> fp = new ArrayList<AnnotationFS>();
    List<AnnotationFS> fn = new ArrayList<AnnotationFS>();
    List<AnnotationFS> tp = new ArrayList<AnnotationFS>();

    // need basics in this test cas too:
    final DefaultSeeder scanner = new DefaultSeeder();
    scanner.seed(test.getDocumentText(), test);
    testAnnotations = expand(testAnnotations, test, getWordTypes(test));
    runAnnotations = expand(runAnnotations, run, getWordTypes(run));

    for (AnnotationFS eachTest : testAnnotations) {
      boolean found = false;
View Full Code Here

    List<FeatureStructure> tp = new ArrayList<FeatureStructure>();

    if (test.getAnnotationIndex(
            test.getTypeSystem().getType("org.apache.uima.ruta.type.RutaBasic")).size() == 0) {
      // need basics in this test cas too:
      final DefaultSeeder scanner = new DefaultSeeder();
      scanner.seed(test.getDocumentText(), test);
    }
    for (FeatureStructure eachTest : testFSs) {
      boolean found = false;
      for (FeatureStructure eachRun : runFSs) {
        if (match(eachTest, eachRun, wordTypes)) {
View Full Code Here

TOP

Related Classes of org.apache.uima.ruta.seed.DefaultSeeder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.