epic.parser

RuleTopology

final class RuleTopology[L] extends Encoder[Rule[L]] with Serializable

A RuleTopology is basically a grammar with no weights. It provides lookup methods by rule, by parent, etc.

Annotations
@SerialVersionUID( 2L )
Linear Supertypes
Serializable, Serializable, Encoder[Rule[L]], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. RuleTopology
  2. Serializable
  3. Serializable
  4. Encoder
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

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. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def chain(r: Int): IndexedSeq[String]

  8. def child(r: Int): Int

    Returns the child label index from the (unary) rule index

  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def decode[V](array: SparseArray[V]): Map[Rule[L], V]

    Definition Classes
    Encoder
  11. def decode[V](array: Array[V]): Map[Rule[L], V]

    Definition Classes
    Encoder
  12. def decode(v: Vector[Double], keepZeros: Boolean): Counter[Rule[L], Double]

    Definition Classes
    Encoder
  13. def encode(c: Tensor[(Rule[L], Rule[L]), Double]): DenseMatrix[Double]

    Definition Classes
    Encoder
  14. def encode(c: Tensor[Rule[L], Double], ignoreOutOfIndex: Boolean): Vector[Double]

    Definition Classes
    Encoder
  15. def encodeDense(c: Tensor[Rule[L], Double], ignoreOutOfIndex: Boolean): DenseVector[Double]

    Definition Classes
    Encoder
  16. def encodeSparse(c: Tensor[Rule[L], Double], ignoreOutOfIndex: Boolean): SparseVector[Double]

    Definition Classes
    Encoder
  17. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  19. def fillArray[V](default: ⇒ V)(implicit arg0: ClassTag[V]): Array[V]

    Definition Classes
    Encoder
  20. def fillSparseArrayMap[V](default: ⇒ V)(implicit arg0: ClassTag[V], arg1: Zero[V]): SparseArrayMap[V]

    Definition Classes
    Encoder
  21. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  22. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  23. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  24. val index: Index[Rule[L]]

    Definition Classes
    RuleTopology → Encoder
  25. def indexedBinaryRulesWithLeftChild(b: Int): Array[Int]

    Gives all binary rule indices with this left child

  26. def indexedBinaryRulesWithParent(l: Int): Array[Int]

    Gives all binary rule indices with this parent

  27. def indexedBinaryRulesWithRightChild(c: Int): Array[Int]

    Gives all binary rule indices with this right child

  28. def indexedRule(r: Int): Rule[Int]

  29. val indexedRules: Array[Rule[Int]]

  30. def indexedUnaryRulesWithChild(l: Int): Array[Int]

    Gives all unary rule indices with this child

  31. def indexedUnaryRulesWithParent(l: Int): Array[Int]

    Gives all unary rule indices with this parent

  32. def isBinary(r: Int): Boolean

  33. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  34. def labelEncoder: Encoder[L]

  35. val labelIndex: Index[L]

  36. def leftChild(r: Int): Int

    Returns the left child label index from the rule index

  37. def mkArray[V](implicit arg0: ClassTag[V]): Array[V]

    Definition Classes
    Encoder
  38. final def mkDenseVector(default: Double): DenseVector[Double]

    Definition Classes
    Encoder
  39. final def mkMatrix(): DenseMatrix[Double]

    Definition Classes
    Encoder
  40. def mkSparseArray[V](implicit arg0: ClassTag[V], arg1: Zero[V]): SparseArray[V]

    Definition Classes
    Encoder
  41. def mkSparseVector(): SparseVector[Double]

    Definition Classes
    Encoder
  42. final def mkVector(): Vector[Double]

    Definition Classes
    Encoder
  43. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  46. def parent(r: Int): Int

    Returns the parent label index from the rule index

  47. def prettyString: String

  48. def rightChild(r: Int): Int

    Returns the right child label index from the rule index

  49. val root: L

  50. val rootIndex: Int

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

    Definition Classes
    AnyRef
  52. def tabulateArray[V](f: (Rule[L]) ⇒ V)(implicit arg0: ClassTag[V]): Array[V]

    Definition Classes
    Encoder
  53. def tabulateDenseVector(f: (Rule[L]) ⇒ Double): DenseVector[Double]

    Definition Classes
    Encoder
  54. def toString(): String

    Definition Classes
    AnyRef → Any
  55. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Encoder[Rule[L]]

Inherited from AnyRef

Inherited from Any

Ungrouped