Examples of Following


Examples of org.cleartk.classifier.feature.extractor.CleartkExtractor.Following

    this.contextFeatureExtractors = new ArrayList<CleartkExtractor>();
    this.contextFeatureExtractors.add(new CleartkExtractor(
        BaseToken.class,
        allExtractors,
        new Preceding(3),
        new Following(3)));
    //    this.parseFeatureExtractors = new ArrayList<ParseSpanFeatureExtractor>();
    //    this.parseFeatureExtractors.add(new ParseSpanFeatureExtractor());
    parseExtractor = new ParseSpanFeatureExtractor();

    //initialize feature selection
View Full Code Here

Examples of org.cleartk.classifier.feature.extractor.CleartkExtractor.Following

    this.contextFeatureExtractors = new ArrayList<CleartkExtractor>();
    this.contextFeatureExtractors.add(new CleartkExtractor(
        BaseToken.class,
        allExtractors,
        new Preceding(3),
        new Following(3)));
//    this.parseFeatureExtractors = new ArrayList<ParseSpanFeatureExtractor>();
//    this.parseFeatureExtractors.add(new ParseSpanFeatureExtractor());
    parseExtractor = new ParseSpanFeatureExtractor();
  }
View Full Code Here

Examples of org.cleartk.classifier.feature.extractor.CleartkExtractor.Following

    this.contextExtractor = new CleartkExtractor(
        BaseToken.class,
        baseExtractor,
        new Preceding(3),
        new Covered(),
        new Following(3));
    this.verbTensePatternExtractor = new NearbyVerbTenseXExtractor();
    this.sectionIDExtractor = new SectionHeaderExtractor();
    this.closestVerbExtractor = new ClosestVerbExtractor();
    this.timeXExtractor = new TimeXExtractor();
    this.genericExtractor = new EventPropertyExtractor();
View Full Code Here

Examples of org.cleartk.classifier.feature.extractor.CleartkExtractor.Following

    this.contextExtractor = new CleartkExtractor(
        BaseToken.class,
        baseExtractor,
        new Preceding(3),
        new Covered(),
        new Following(3));
    this.verbTensePatternExtractor = new NearbyVerbTenseXExtractor();
    this.sectionIDExtractor = new SectionHeaderExtractor();
    this.closestVerbExtractor = new ClosestVerbExtractor();
    this.timeXExtractor = new TimeXExtractor();
    this.genericExtractor = new EventPropertyExtractor();
View Full Code Here

Examples of org.cleartk.classifier.feature.extractor.CleartkExtractor.Following

    this.contextExtractor = new CleartkExtractor(
        BaseToken.class,
        baseExtractor,
        new Preceding(3),
        new Covered(),
        new Following(3));

  }
View Full Code Here

Examples of org.cleartk.classifier.feature.extractor.CleartkExtractor.Following

    this.contextFeatureExtractors = new ArrayList<CleartkExtractor>();
    this.contextFeatureExtractors.add(new CleartkExtractor(
        BaseToken.class,
        allExtractors,
        new Preceding(2),
        new Following(2)));
//    this.parseFeatureExtractors = new ArrayList<ParseSpanFeatureExtractor>();
//    this.parseFeatureExtractors.add(new ParseSpanFeatureExtractor());
    parseExtractor = new ParseSpanFeatureExtractor();
  }
View Full Code Here

Examples of org.cleartk.classifier.feature.extractor.CleartkExtractor.Following

    this.contextExtractor = new CleartkExtractor(
        BaseToken.class,
        baseExtractor,
        new Preceding(3),
        new Covered(),
        new Following(3));
    this.verbTensePatternExtractor = new NearbyVerbTenseXExtractor();
    this.sectionIDExtractor = new SectionHeaderExtractor();
    this.closestVerbExtractor = new ClosestVerbExtractor();
    this.timeXExtractor = new TimeXExtractor();
    this.genericExtractor = new EventPropertyExtractor();
View Full Code Here

Examples of org.cleartk.classifier.feature.extractor.CleartkExtractor.Following

        new TypePathExtractor(BaseToken.class, "partOfSpeech"));
    this.contextFeatureExtractor = new CleartkExtractor(
        BaseToken.class,
        this.tokenFeatureExtractor,
        new Preceding(3),
        new Following(3));

    if (featureSelectionThreshold < 0) {
      this.featureSelection = null;
    } else {
      this.featureSelection = EventAnnotator.createFeatureSelection(this.featureSelectionThreshold);
View Full Code Here

Examples of org.cleartk.classifier.feature.extractor.ContextExtractor.Following

    this.contextFeatureExtractors.add(new ContextExtractor<IdentifiedAnnotation>(
        IdentifiedAnnotation.class,
        new CoveredTextExtractor(),
        //new TypePathExtractor(IdentifiedAnnotation.class, "stem"),
        new Preceding(2),
        new Following(2)));

    ContextExtractor<BaseToken> tokenContextExtractor1 = new ContextExtractor<BaseToken>(
        BaseToken.class,
        new SpannedTextExtractor(),
        new ContextExtractor.Ngram(new Covered()),
       
        new ContextExtractor.Ngram(new Preceding(1)),
        new ContextExtractor.Ngram(new Preceding(2)),
        //new ContextExtractor.Ngram(new Preceding(1, 2)),
        new ContextExtractor.Ngram(new Preceding(3)),
        //new ContextExtractor.Ngram(new Preceding(2, 3)),
        new ContextExtractor.Ngram(new Following(1)),
        new ContextExtractor.Ngram(new Following(2)),
        //new ContextExtractor.Ngram(new Following(1, 2)),
        new ContextExtractor.Ngram(new Following(3))
        //new ContextExtractor.Ngram(new Following(2,3))
        );
    tokenContextFeatureExtractors = new ArrayList<ContextExtractor<BaseToken>>();
    tokenContextFeatureExtractors.add(tokenContextExtractor1);
   
    TypePathExtractor posExtractor = new TypePathExtractor(BaseToken.class, "partOfSpeech");
    ContextExtractor<BaseToken> extractor2 = new ContextExtractor<BaseToken>(
        BaseToken.class,
        posExtractor,
        new ContextExtractor.Ngram(new Covered()),
        new ContextExtractor.Ngram(new Preceding(1)),
        new ContextExtractor.Ngram(new Preceding(2)),
        new ContextExtractor.Ngram(new Following(1)),
        new ContextExtractor.Ngram(new Following(2))
        /*
        new ContextExtractor.Covered(),
        new ContextExtractor.Ngram(new Covered())
       
        new ContextExtractor.Ngram(new Preceding(1)),
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.