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)

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

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

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

    Definition Classes
    Any
  6. val _labels: Array[ParseTreeLabel]

  7. val _parents: Array[Int]

  8. val _targetParents: Array[Int]

  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def children(parentIndex: Int): Seq[Token]

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

  11. 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.

  12. def clone(): AnyRef

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

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

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

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

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

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

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

  20. def hashCode(): Int

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

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

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

  23. def labels: Array[ParseTreeLabel]

  24. def labelsAccuracy: Double

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

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

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

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

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

    Definition Classes
    AnyRef
  30. def numLabelsCorrect: Int

  31. def numParentsCorrect: Int

  32. def parent(token: Token): Token

    Returns the parent token of the given token

  33. 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)

  34. def parentIndex(childIndex: Int): Int

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

  35. def parents: Array[Int]

  36. def parentsAccuracy: Double

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

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

  39. 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.

  40. def rootChildIndex: Int

    Returns the position in the sentence of the root token.

  41. val sentence: Sentence

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

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

  43. 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.

  44. def setParentsToTarget(): Unit

  45. 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.

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

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

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

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

  50. def targetParents: Array[Int]

  51. 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
  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