Package edu.stanford.nlp.pipeline

Examples of edu.stanford.nlp.pipeline.StanfordCoreNLP


  }

  private VerbSemClassMatcher() {
    props.put("annotators", "tokenize, ssplit, pos, lemma");
    props.put("pos.model", "edu/stanford/nlp/models/pos-tagger/english-caseless-left3words-distsim.tagger"); //caseless model
    pipeline = new StanfordCoreNLP(props);
  }
View Full Code Here


        props = new Properties();
        props.put("annotators", "tokenize, ssplit, pos, lemma");

        // StanfordCoreNLP loads a lot of models, so you probably
        // only want to do this once per execution
        this.pipeline = new StanfordCoreNLP(props);
    }
View Full Code Here

      Object object = ((ArrayCoreMap) entity).get(klass);
      return object;
    }
   
    public static Object getPipelineWithProperties(Properties properties) {
      StanfordCoreNLP pipeline = new StanfordCoreNLP(properties);
      return pipeline;
    }
View Full Code Here

  Map<IRougeSummaryModel, Set<IRougeSummaryModel>> mapping = new HashMap<IRougeSummaryModel, Set<IRougeSummaryModel>>();

  Properties props = new Properties();
  props.put("annotators", "tokenize ,ssplit");

  StanfordCoreNLP stanford = new StanfordCoreNLP(props);

  for (File modelFile : fileMapping.keySet())
  {
      RougeSummaryModel model = parseText(modelFile, stanford);
View Full Code Here

TOP

Related Classes of edu.stanford.nlp.pipeline.StanfordCoreNLP

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.