Class NLPUtils


  • public class NLPUtils
    extends java.lang.Object
    Since:
    5.2
    Version:
    5.2
    Author:
    Pedro Oliveira
    • Constructor Summary

      Constructors 
      Constructor Description
      NLPUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Document doc​(java.lang.String... theTokens)
      Create one-sentence Document with the given tokens
      static Span span​(Document theDocument, int theIndex)
      Create Span at the given index from a one-sentence Document
      static Span span​(java.lang.String... theTokens)
      Create Span with all the given tokens
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NLPUtils

        public NLPUtils()
    • Method Detail

      • doc

        public static Document doc​(java.lang.String... theTokens)
        Create one-sentence Document with the given tokens
      • span

        public static Span span​(Document theDocument,
                                int theIndex)
        Create Span at the given index from a one-sentence Document
      • span

        public static Span span​(java.lang.String... theTokens)
        Create Span with all the given tokens