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
Ordering
- Alphabetic
- By Inheritance
Inherited
- RuleTopology
- Serializable
- Serializable
- Encoder
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def chain(r: Int): IndexedSeq[String]
-
def
child(r: Int): Int
Returns the child label index from the (unary) rule index
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
decode[V](array: SparseArray[V]): Map[Rule[L], V]
- Definition Classes
- Encoder
-
def
decode[V](array: Array[V]): Map[Rule[L], V]
- Definition Classes
- Encoder
-
def
decode(v: Vector[Double], keepZeros: Boolean): Counter[Rule[L], Double]
- Definition Classes
- Encoder
-
def
encode(c: Tensor[(Rule[L], Rule[L]), Double]): DenseMatrix[Double]
- Definition Classes
- Encoder
-
def
encode(c: Tensor[Rule[L], Double], ignoreOutOfIndex: Boolean): Vector[Double]
- Definition Classes
- Encoder
-
def
encodeDense(c: Tensor[Rule[L], Double], ignoreOutOfIndex: Boolean): DenseVector[Double]
- Definition Classes
- Encoder
-
def
encodeSparse(c: Tensor[Rule[L], Double], ignoreOutOfIndex: Boolean): SparseVector[Double]
- Definition Classes
- Encoder
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
fillArray[V](default: ⇒ V)(implicit arg0: ClassTag[V]): Array[V]
- Definition Classes
- Encoder
-
def
fillSparseArrayMap[V](default: ⇒ V)(implicit arg0: ClassTag[V], arg1: Zero[V]): SparseArrayMap[V]
- Definition Classes
- Encoder
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
val
index: Index[Rule[L]]
- Definition Classes
- RuleTopology → Encoder
-
def
indexedBinaryRulesWithLeftChild(b: Int): Array[Int]
Gives all binary rule indices with this left child
-
def
indexedBinaryRulesWithParent(l: Int): Array[Int]
Gives all binary rule indices with this parent
-
def
indexedBinaryRulesWithRightChild(c: Int): Array[Int]
Gives all binary rule indices with this right child
- def indexedRule(r: Int): Rule[Int]
- val indexedRules: Array[Rule[Int]]
-
def
indexedUnaryRulesWithChild(l: Int): Array[Int]
Gives all unary rule indices with this child
-
def
indexedUnaryRulesWithParent(l: Int): Array[Int]
Gives all unary rule indices with this parent
- def isBinary(r: Int): Boolean
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def labelEncoder: Encoder[L]
- val labelIndex: Index[L]
-
def
leftChild(r: Int): Int
Returns the left child label index from the rule index
-
def
mkArray[V](implicit arg0: ClassTag[V]): Array[V]
- Definition Classes
- Encoder
-
final
def
mkDenseVector(default: Double): DenseVector[Double]
- Definition Classes
- Encoder
-
final
def
mkMatrix(): DenseMatrix[Double]
- Definition Classes
- Encoder
-
def
mkSparseArray[V](implicit arg0: ClassTag[V], arg1: Zero[V]): SparseArray[V]
- Definition Classes
- Encoder
-
def
mkSparseVector(): SparseVector[Double]
- Definition Classes
- Encoder
-
final
def
mkVector(): Vector[Double]
- Definition Classes
- Encoder
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
parent(r: Int): Int
Returns the parent label index from the rule index
- def prettyString: String
-
def
rightChild(r: Int): Int
Returns the right child label index from the rule index
- val root: L
- val rootIndex: Int
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
tabulateArray[V](f: (Rule[L]) ⇒ V)(implicit arg0: ClassTag[V]): Array[V]
- Definition Classes
- Encoder
-
def
tabulateDenseVector(f: (Rule[L]) ⇒ Double): DenseVector[Double]
- Definition Classes
- Encoder
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )