java.util.function.Functionedu.stanford.nlp.util.Function



Project stanfordnlp/CoreNLP in file ...t.src.edu.stanford.nlp.pipeline.PipelineITest.java (2015-03-14)
@@ -10,7 +10,7 @@ import edu.stanford.nlp.ling.CoreLabel;
 import edu.stanford.nlp.trees.TreeCoreAnnotations;
 import edu.stanford.nlp.trees.Tree;
 import edu.stanford.nlp.util.CoreMap;
-import java.util.function.Function;
+import edu.stanford.nlp.util.Function;
 import edu.stanford.nlp.util.Iterables;
 import edu.stanford.nlp.util.StringUtils;
 
@@ -19,7 +19,7 @@ public class PipelineITest extends TestCase {
   public void testPipeline() throws Exception {
     // create pipeline
     AnnotationPipeline pipeline = new AnnotationPipeline();
-    pipeline.addAnnotator(new TokenizerAnnotator(false, "en"));
+    pipeline.addAnnotator(new PTBTokenizerAnnotator(false));
     pipeline.addAnnotator(new WordsToSentencesAnnotator(false));
     pipeline.addAnnotator(new POSTaggerAnnotator(false));
     pipeline.addAnnotator(new MorphaAnnotator(false));
Project stanfordnlp/CoreNLP in file ...t.src.edu.stanford.nlp.pipeline.PipelineITest.java (2015-02-18)
@@ -10,7 +10,7 @@ import edu.stanford.nlp.ling.CoreLabel;
 import edu.stanford.nlp.trees.TreeCoreAnnotations;
 import edu.stanford.nlp.trees.Tree;
 import edu.stanford.nlp.util.CoreMap;
-import java.util.function.Function;
+import edu.stanford.nlp.util.Function;
 import edu.stanford.nlp.util.Iterables;
 import edu.stanford.nlp.util.StringUtils;
 
@@ -19,7 +19,7 @@ public class PipelineITest extends TestCase {
   public void testPipeline() throws Exception {
     // create pipeline
     AnnotationPipeline pipeline = new AnnotationPipeline();
-    pipeline.addAnnotator(new TokenizerAnnotator(false, "en"));
+    pipeline.addAnnotator(new PTBTokenizerAnnotator(false));
     pipeline.addAnnotator(new WordsToSentencesAnnotator(false));
     pipeline.addAnnotator(new POSTaggerAnnotator(false));
     pipeline.addAnnotator(new MorphaAnnotator(false));
Project stanfordnlp/CoreNLP in file ...r.lexparser.TregexPoweredTreebankParserParams.java (2014-09-08)
@@ -10,11 +10,11 @@ import edu.stanford.nlp.trees.tregex.TregexParseException;
 import edu.stanford.nlp.trees.tregex.TregexPattern;
 import edu.stanford.nlp.trees.tregex.TregexPatternCompiler;
 import edu.stanford.nlp.util.CollectionUtils;
+import edu.stanford.nlp.util.Function;
 import edu.stanford.nlp.util.Generics;
 import edu.stanford.nlp.util.Pair;
 
 import java.util.Collection;
-import java.util.function.Function;
 import java.util.Map;
 
 /**
@@ -31,7 +31,7 @@ import java.util.Map;
  *
  * The "search" in this process is conducted via Tregex, and the
  * actual annotation is done through execution of an arbitrary
- * {@link java.util.function.Function} provided by the user.
+ * {@link edu.stanford.nlp.util.Function} provided by the user.
  * This class carries as inner several classes several useful common
  * annotation functions.
  *
Project stanfordnlp/CoreNLP in file ...t.src.edu.stanford.nlp.pipeline.PipelineITest.java (2014-09-09)
@@ -10,7 +10,7 @@ import edu.stanford.nlp.ling.CoreLabel;
 import edu.stanford.nlp.trees.TreeCoreAnnotations;
 import edu.stanford.nlp.trees.Tree;
 import edu.stanford.nlp.util.CoreMap;
-import java.util.function.Function;
+import edu.stanford.nlp.util.Function;
 import edu.stanford.nlp.util.Iterables;
 import edu.stanford.nlp.util.StringUtils;
 
@@ -19,7 +19,7 @@ public class PipelineITest extends TestCase {
   public void testPipeline() throws Exception {
     // create pipeline
     AnnotationPipeline pipeline = new AnnotationPipeline();
-    pipeline.addAnnotator(new TokenizerAnnotator(false, "en"));
+    pipeline.addAnnotator(new PTBTokenizerAnnotator(false));
     pipeline.addAnnotator(new WordsToSentencesAnnotator(false));
     pipeline.addAnnotator(new POSTaggerAnnotator(false));
     pipeline.addAnnotator(new MorphaAnnotator(false));
Project stanfordnlp/CoreNLP in file ...c8/src.edu.stanford.nlp.objectbank.ObjectBank.java (2014-09-09)
@@ -1,7 +1,7 @@
 package edu.stanford.nlp.objectbank;
 
 import edu.stanford.nlp.util.AbstractIterator;
-import java.util.function.Function;
+import edu.stanford.nlp.util.Function;
 
 import java.util.List;
 import java.util.ArrayList;
@@ -261,7 +261,7 @@ public class ObjectBank<E> implements Collection<E>, Serializable {
 
   /**
    * If you are keeping the contents in memory,
-   * this will clear the memory, and they will be
+   * this will clear hte memory, and they will be
    * recomputed the next time iterator() is
    * called.
    */