Package opennlp.tools.ml.model

Examples of opennlp.tools.ml.model.Event


        String type = SentenceDetectorME.NO_SPLIT;
        if (!it.hasNext()) {
          type = SentenceDetectorME.SPLIT;
        }

        events.add(new Event(type, cg.getContext(sample.getDocument(),
            sentenceSpan.getStart() + candidate)));
      }
    }

View Full Code Here


      while ((line = reader.readLine()) != null) {
        String[] items = line.split("\\s+");
        String label = items[5];
        String[] context = { "verb=" + items[1], "noun=" + items[2],
            "prep=" + items[3], "prep_obj=" + items[4] };
        events.add(new Event(label, context));
      }
    }
    finally {
      in.close();
    }
View Full Code Here

TOP

Related Classes of opennlp.tools.ml.model.Event

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.