cc.factorie.app.nlp.parse

ParseTree

class ParseTree extends AnyRef

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ParseTree
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ParseTree(sentence: Sentence, theTargetParents: Seq[Int], theTargetLabels: Seq[String])

  2. new ParseTree(sentence: Sentence)

  3. new ParseTree(sentence: Sentence, theTargetParents: Array[Int], theTargetLabels: Array[Int])

Value Members

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

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

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

    Definition Classes
    AnyRef → Any
  4. val _labels: Array[ParseTreeLabel]

  5. val _parents: Array[Int]

  6. val _targetParents: Array[Int]

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def check(parents: Array[Int]): Unit

  9. def children(parentIndex: Int): Seq[Token]

    Return a list of tokens who are the children of the token at sentence position 'parentIndex'

  10. def childrenLabeled(index: Int, labelIntValue: Int): Seq[Token]

    Return a list of tokens who are the children of the token at sentence position 'parentIndex' and who also have the indicated label value.

  11. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def copy: ParseTree

  13. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. def getChildrenIndices(parentIndex: Int, filter: (Int) ⇒ Boolean = x => false): Seq[Int]

  17. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  18. def getSubtreeInds(parentIndex: Int, filter: (Int) ⇒ Boolean = x => false): Seq[Int]

  19. def hashCode(): Int

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

    Definition Classes
    Any
  21. def label(index: Int): ParseTreeLabel

    Return the label on the edge from the child at sentence position 'index' to its parent.

  22. def labels: Array[ParseTreeLabel]

  23. def labelsAccuracy: Double

  24. def leftChildren(parentIndex: Int): Seq[Token]

  25. def leftChildrenLabeled(parentIndex: Int, labelIntValue: Int): Seq[Token]

  26. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  27. final def notify(): Unit

    Definition Classes
    AnyRef
  28. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  29. def numLabelsCorrect: Int

  30. def numParentsCorrect: Int

  31. def parent(token: Token): Token

    Returns the parent token of the given token

  32. def parent(childIndex: Int): Token

    Returns the parent token of the token at position childIndex (or null if the token at childIndex is the root)

  33. def parentIndex(childIndex: Int): Int

    Returns the sentence position of the parent of the token at position childIndex

  34. def parents: Array[Int]

  35. def parentsAccuracy: Double

  36. def rightChildren(parentIndex: Int): Seq[Token]

  37. def rightChildrenLabeled(parentIndex: Int, labelIntValue: Int): Seq[Token]

  38. def rootChild: Token

    Return the token at the root of the parse tree.

    Return the token at the root of the parse tree. The parent of this token is null. The parentIndex of this position is -1.

  39. def rootChildIndex: Int

    Returns the position in the sentence of the root token.

  40. val sentence: Sentence

  41. def setParent(child: Token, parent: Token): Unit

    Set the parent of the token 'child' to be 'parent'.

  42. def setParent(childIndex: Int, parentIndex: Int): Unit

    Set the parent of the token at position 'child' to be at position 'parentIndex'.

    Set the parent of the token at position 'child' to be at position 'parentIndex'. A parentIndex of -1 indicates the root.

  43. def setParentsToTarget(): Unit

  44. def setRootChild(token: Token): Unit

    Make the argument the root of the tree.

    Make the argument the root of the tree. This method does not prevent their being two roots.

  45. def setTargetParent(childIndex: Int, parentIndex: Int): Unit

  46. def subtree(parentIndex: Int): Seq[Token]

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

    Definition Classes
    AnyRef
  48. def targetParentIndex(childIndex: Int): Int

  49. def targetParents: Array[Int]

  50. def toString(): String

    Return the label on the edge from 'childToken' to its parent.

    Return the label on the edge from 'childToken' to its parent.

    Definition Classes
    ParseTree → AnyRef → Any
  51. def toStringTex: String

  52. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped