Example usage for edu.stanford.nlp.ie.crf CRFClassifier main

List of usage examples for edu.stanford.nlp.ie.crf CRFClassifier main

Introduction

In this page you can find the example usage for edu.stanford.nlp.ie.crf CRFClassifier main.

Prototype

public static void main(String[] args) throws Exception 

Source Link

Document

The main method.

Usage

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); }
     */

}