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

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

  6. def child(r: Int): Int

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

  7. def clone(): AnyRef

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

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

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

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

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

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

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

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

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

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

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

    Definition Classes
    Encoder
  19. def finalize(): Unit

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

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

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

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

    Gives all binary rule indices with this left child

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

    Gives all binary rule indices with this parent

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

    Gives all binary rule indices with this right child

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

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

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

    Gives all unary rule indices with this child

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

    Gives all unary rule indices with this parent

  30. def isBinary(r: Int): Boolean

  31. final def isInstanceOf[T0]: Boolean

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

  33. val labelIndex: Index[L]

  34. def leftChild(r: Int): Int

    Returns the left child label index from the rule index

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

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

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

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

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

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

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

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

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

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

    Returns the parent label index from the rule index

  45. def prettyString: String

  46. def rightChild(r: Int): Int

    Returns the right child label index from the rule index

  47. val root: L

  48. val rootIndex: Int

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

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

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

    Definition Classes
    Encoder
  52. def toString(): String

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  55. 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