Package org.apache.ctakes.relationextractor.ae.features

Examples of org.apache.ctakes.relationextractor.ae.features.NamedEntityFeaturesExtractor


  protected List<RelationFeaturesExtractor> getFeatureExtractors() {
    return Lists.newArrayList(
        new TokenFeaturesExtractor(),
        new PartOfSpeechFeaturesExtractor(),
        new PhraseChunkingExtractor(),
        new NamedEntityFeaturesExtractor(),
        new DependencyTreeFeaturesExtractor(),
        new DependencyPathFeaturesExtractor());
  }
View Full Code Here


    e2.addToIndexes();
    EntityMention between = new EntityMention(jCas, 4, 7);
    between.addToIndexes();
   
    // run the feature extractor over the JCas
    NamedEntityFeaturesExtractor extractor = new NamedEntityFeaturesExtractor();
    List<Feature> features = extractor.extract(jCas, e1, e2);
   
    // make sure that the features that we expect are there
    assertTrue(features.contains(new Feature("mention1_TypeID", "42")));
    assertTrue(features.contains(new Feature("mention2_TypeID", "1")));
    assertTrue(features.contains(new Feature("Distance_EntityMention", 1)));
View Full Code Here

TOP

Related Classes of org.apache.ctakes.relationextractor.ae.features.NamedEntityFeaturesExtractor

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.