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
    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
    @native() @HotSpotIntrinsicCandidate() @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. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. val index: Index[Rule[L]]
    Definition Classes
    RuleTopology → Encoder
  22. def indexedBinaryRulesWithLeftChild(b: Int): Array[Int]

    Gives all binary rule indices with this left child

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

    Gives all binary rule indices with this parent

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

    Gives all binary rule indices with this right child

  25. def indexedRule(r: Int): Rule[Int]
  26. val indexedRules: Array[Rule[Int]]
  27. def indexedUnaryRulesWithChild(l: Int): Array[Int]

    Gives all unary rule indices with this child

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

    Gives all unary rule indices with this parent

  29. def isBinary(r: Int): Boolean
  30. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  31. def labelEncoder: Encoder[L]
  32. val labelIndex: Index[L]
  33. def leftChild(r: Int): Int

    Returns the left child label index from the rule index

  34. def mkArray[V](implicit arg0: ClassTag[V]): Array[V]
    Definition Classes
    Encoder
  35. final def mkDenseVector(default: Double): DenseVector[Double]
    Definition Classes
    Encoder
  36. final def mkMatrix(): DenseMatrix[Double]
    Definition Classes
    Encoder
  37. def mkSparseArray[V](implicit arg0: ClassTag[V], arg1: Zero[V]): SparseArray[V]
    Definition Classes
    Encoder
  38. def mkSparseVector(): SparseVector[Double]
    Definition Classes
    Encoder
  39. final def mkVector(): Vector[Double]
    Definition Classes
    Encoder
  40. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  41. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  42. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  43. def parent(r: Int): Int

    Returns the parent label index from the rule index

  44. def prettyString: String
  45. def rightChild(r: Int): Int

    Returns the right child label index from the rule index

  46. val root: L
  47. val rootIndex: Int
  48. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  49. def tabulateArray[V](f: (Rule[L]) ⇒ V)(implicit arg0: ClassTag[V]): Array[V]
    Definition Classes
    Encoder
  50. def tabulateDenseVector(f: (Rule[L]) ⇒ Double): DenseVector[Double]
    Definition Classes
    Encoder
  51. def toString(): String
    Definition Classes
    AnyRef → Any
  52. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  53. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  54. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    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