Packages

case class Document(rawInput: String, firstNonAdjacent: Array[Int], lang: LanguageInfo) extends Product with Serializable

firstNonAdjacent

for a given index 'i' it keeps a first index 'j' greater or equal 'i' -- such that isAdjacentSeparator (indexable ! j) == False -- eg. " a document " :: Document -- firstNonAdjacent = [1,1,3,3,4,5,6,7,8,9,10,12] -- Note that in this case 12 is the length of the vector, hence not a -- valid index inside the array, this is intentional.

Linear Supertypes
Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Document
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Document(rawInput: String, firstNonAdjacent: Array[Int], lang: LanguageInfo)

    firstNonAdjacent

    for a given index 'i' it keeps a first index 'j' greater or equal 'i' -- such that isAdjacentSeparator (indexable ! j) == False -- eg. " a document " :: Document -- firstNonAdjacent = [1,1,3,3,4,5,6,7,8,9,10,12] -- Note that in this case 12 is the length of the vector, hence not a -- valid index inside the array, this is intentional.

Value Members

  1. def !(i: Int): Char
  2. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  3. final def ##: Int
    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. def adjacentToken(node: Node): Option[TokenLabel]
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  8. def dependencyChildren: Map[Int, List[DependencyEdge]]
  9. def deps(token: TokenLabel): List[DependencyEdge]
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  12. def findCoveredToken(start: Int, end: Int): Option[TokenLabel]
  13. def findToken(start: Int, end: Int): Option[TokenLabel]
  14. val firstNonAdjacent: Array[Int]
  15. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. def indexOfToken(offset: Int): Int
  17. def isAdjacent(a: Int, b: Int): Boolean

    True iff a is followed by whitespaces and b.

  18. def isChinese(c: Char): Boolean

    摘自knowledge-base-langs,避免循环依赖

  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. def isPositionValid(position: Int)(node: Node): Boolean
  21. def isRangeValid(start: Int, end: Int): Boolean

    As regexes are matched without whitespace delimitator, we need to check the reasonability of the match to actually be a word.

  22. val lang: LanguageInfo
  23. def length: Int
  24. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  25. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  26. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  27. def numTokens: Int
  28. def phrase(start: Int, end: Int): String
  29. def productElementNames: Iterator[String]
    Definition Classes
    Product
  30. val rawInput: String
  31. def stringFromPos(position: Int): (String, (Int, Int) => String, (Int, Int) => (Int, Int))
  32. def substring(range: Range): String
  33. def substring(node: Node): String
  34. def substring(s: Int, t: Int): String
  35. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  36. def toString(): String
    Definition Classes
    Document → AnyRef → Any
  37. def token(i: Int): TokenLabel
  38. def tokens: Array[TokenLabel]
  39. val validSequenceHeads: Set[Int]

    sequence优化,不是该起始点的均会被丢弃

  40. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  41. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  42. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  43. def word(i: Int): String

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped