Class/Object

epic.parser

RuleTopology

Related Docs: object RuleTopology | package parser

Permalink

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
Visibility
  1. Public
  2. All

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

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

    Permalink
  6. def child(r: Int): Int

    Permalink

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

  7. def clone(): AnyRef

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

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

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    Encoder
  19. def finalize(): Unit

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

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

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

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

    Permalink

    Gives all binary rule indices with this left child

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

    Permalink

    Gives all binary rule indices with this parent

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

    Permalink

    Gives all binary rule indices with this right child

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

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

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

    Permalink

    Gives all unary rule indices with this child

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

    Permalink

    Gives all unary rule indices with this parent

  30. def isBinary(r: Int): Boolean

    Permalink
  31. final def isInstanceOf[T0]: Boolean

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

    Permalink
  33. val labelIndex: Index[L]

    Permalink
  34. def leftChild(r: Int): Int

    Permalink

    Returns the left child label index from the rule index

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

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

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

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

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

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

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

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

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

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

    Permalink

    Returns the parent label index from the rule index

  45. def prettyString: String

    Permalink
  46. def rightChild(r: Int): Int

    Permalink

    Returns the right child label index from the rule index

  47. val root: L

    Permalink
  48. val rootIndex: Int

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

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

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

    Permalink
    Definition Classes
    Encoder
  52. def toString(): String

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

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

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

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

Inherited from Serializable

Inherited from Serializable

Inherited from Encoder[Rule[L]]

Inherited from AnyRef

Inherited from Any

Ungrouped