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
    @HotSpotIntrinsicCandidate() @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. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  20. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  21. val index: Index[Rule[L]]

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

    Permalink

    Gives all binary rule indices with this left child

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

    Permalink

    Gives all binary rule indices with this parent

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

    Permalink

    Gives all binary rule indices with this right child

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

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

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

    Permalink

    Gives all unary rule indices with this child

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

    Permalink

    Gives all unary rule indices with this parent

  29. def isBinary(r: Int): Boolean

    Permalink
  30. final def isInstanceOf[T0]: Boolean

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

    Permalink
  32. val labelIndex: Index[L]

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

    Permalink

    Returns the left child label index from the rule index

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  42. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  43. def parent(r: Int): Int

    Permalink

    Returns the parent label index from the rule index

  44. def prettyString: String

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

    Permalink

    Returns the right child label index from the rule index

  46. val root: L

    Permalink
  47. val rootIndex: Int

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  52. final def wait(arg0: Long, arg1: Int): Unit

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

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

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

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Serializable

Inherited from Serializable

Inherited from Encoder[Rule[L]]

Inherited from AnyRef

Inherited from Any

Ungrouped