Trait/Object

org.clulab.struct

Tree

Related Docs: object Tree | package struct

Permalink

trait Tree extends AnyRef

Stores a tree structure; used generally to store constituent trees User: marcov, mihais Date: 4/1/13, modified 10/13/14

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Tree
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def children: Option[Array[Tree]]

    Permalink

    Array of children of this node

  2. abstract def endOffset: Int

    Permalink

    Offset of token immediately after this constituent; starts at 0

  3. abstract def head: Int

    Permalink

    Offset of *immediate* child that is head for this constituent; starts at 0

  4. abstract def headOffset: Int

    Permalink

    Offset of head token; starts at 0

  5. abstract def isLeaf: Boolean

    Permalink
  6. abstract def startOffset: Int

    Permalink

    Start token offset in the sentence for this constituent; starts at 0

  7. abstract def value: String

    Permalink

    A syntactic label, POS tag, or word for terminal nodes

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. var _parent: Option[NonTerminal]

    Permalink
    Attributes
    protected
  5. def ancestors: List[NonTerminal]

    Permalink

    returns ancestors sorted from near to far

  6. def apply(address: List[Int]): Tree

    Permalink
  7. def apply(address: Int*): Tree

    Permalink
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. def findHeadPosition: Int

    Permalink
    Attributes
    protected
  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def hasLabel(label: String): Boolean

    Permalink
  16. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. def isPreTerminal: Boolean

    Permalink
  19. def isUnary: Boolean

    Permalink
  20. def leftSibling: Option[Tree]

    Permalink
  21. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  22. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. def parent: Option[NonTerminal]

    Permalink
  25. def posTags: List[(String, String)]

    Permalink
  26. def preterminals: List[NonTerminal]

    Permalink
  27. def rightSibling: Option[Tree]

    Permalink
  28. def root: Tree

    Permalink
  29. def setParent(p: Option[NonTerminal]): Unit

    Permalink
  30. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  31. def terminals: List[Terminal]

    Permalink
  32. def toString(): String

    Permalink
    Definition Classes
    Tree → AnyRef → Any
  33. def toStringDepth(showHead: Boolean, depth: Int = 0): String

    Permalink

    Pretty print, including position of head child

  34. def tokens: List[String]

    Permalink
  35. def treePosition: List[Int]

    Permalink
  36. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped