object Trees
- Alphabetic
- By Inheritance
- Trees
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- final case class Zipper [+L](tree: BinarizedTree[L], location: Location[L] = Zipper.Root) extends Product with Serializable
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
- def addHorizontalMarkovization(tree: BinarizedTree[String], order: Int): BinarizedTree[String]
-
def
addHorizontalMarkovization[T](tree: BinarizedTree[T], order: Int, join: (T, IndexedSeq[Either[T, T]]) ⇒ T, isIntermediate: (T) ⇒ Boolean): BinarizedTree[T]
Adds horizontal markovization to an already binarized tree with no markovization.
Adds horizontal markovization to an already binarized tree with no markovization.
The sibling history of a node is: If one of its children is an intermediate, then its history concatenated with its sibling (if it exists), markovizing. if neither is an intermediate, and it is an intermediate, then the right child. Otherwise it is empty
- def annotateParents(tree: Tree[String], depth: Int): Tree[String]
- def annotateParents[L](tree: Tree[L], join: (L, L) ⇒ L, depth: Int, history: List[L] = List.empty): Tree[L]
- def annotateParentsBinarized(tree: BinarizedTree[String], depth: Int): BinarizedTree[String]
-
def
annotateParentsBinarized[L](tree: BinarizedTree[L], join: (L, Seq[L]) ⇒ L, isIntermediate: (L) ⇒ Boolean, dontAnnotate: (Tree[L]) ⇒ Boolean, depth: Int): BinarizedTree[L]
Adds parent-markovization to an already binarized tree.
Adds parent-markovization to an already binarized tree. Also handles the unary layering we do by ignoring identity unary transitions in the history
- L
type of the tree
- tree
the tree
- join
join: join two elements of the history into a single label. (child,parent)=>newChild
- isIntermediate
is this an intermediate symbol? Determines whether or not we should include the immediate parent of this label in the history
- depth
how much history to keep
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def binarize(tree: Tree[String], headFinder: HeadFinder[String] = HeadFinder.collins): BinarizedTree[String]
- def binarize[L](tree: Tree[L], makeIntermediate: (L, L) ⇒ L, extendIntermediate: (L, Either[L, L]) ⇒ L, headFinder: HeadFinder[L]): BinarizedTree[L]
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- def deannotate(tree: BinarizedTree[String]): BinarizedTree[String]
- def deannotate(tree: Tree[String]): Tree[String]
- def deannotateLabel(l: String): String
- def debinarize(tree: Tree[String]): Tree[String]
- def debinarize[L](tree: Tree[L], isBinarized: (L) ⇒ Boolean): Tree[L]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
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
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
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( ... )
- object Transforms
- object Zipper extends Serializable