List of usage examples for edu.stanford.nlp.ie.crf CRFClassifier main
public static void main(String[] args) throws Exception
From source file:edu.cmu.geolocator.nlp.ner.FeatureExtractor.SkipNewACE_En_FeatureGenerator.java
License:Apache License
@SuppressWarnings("unchecked") public static void main(String args[]) throws IOException, InterruptedException { Document d = null;/*from ww w . java 2 s. co m*/ try { CRFClassifier.main(args); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } SkipNewACE_En_FeatureGenerator fgen = new SkipNewACE_En_FeatureGenerator("res/"); Sentence sent = new Sentence("I live in Pittsburgh"); List<ArrayList<Feature>> tweetfeatures = fgen.extractFeature(sent); System.out.println(tweetfeatures); /* * for (Sentence sent : d.getP().get(0).getSentences()) { * List<ArrayList<Feature>> tweetfeatures = fgen.extractFeature(sent); } */ }