final case class Parser[L, W](topology: RuleTopology[L], lexicon: Lexicon[L, W], constraintsFactory: Factory[L, W], marginalFactory: Factory[L, W], decoder: ChartDecoder[L, W] = ChartDecoder[L, W]())(implicit debinarizer: Debinarizer[L]) extends (IndexedSeq[W]) ⇒ Tree[L] with Product with Serializable
A Parser produces a syntactic representation of a sentence, called a epic.trees.Tree, which has internal nodes that demarcate syntactic functions
- Annotations
- @SerialVersionUID()
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Parser
- Serializable
- Serializable
- Product
- Equals
- Function1
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new Parser(topology: RuleTopology[L], lexicon: Lexicon[L, W], constraintsFactory: Factory[L, W], marginalFactory: Factory[L, W], decoder: ChartDecoder[L, W] = ChartDecoder[L, W]())(implicit debinarizer: Debinarizer[L])
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
andThen[A](g: (Tree[L]) ⇒ A): (IndexedSeq[W]) ⇒ A
- Definition Classes
- Function1
- Annotations
- @unspecialized()
-
def
apply(s: IndexedSeq[W]): Tree[L]
Returns the best parse (calls bestParse) for the sentence.
Returns the best parse (calls bestParse) for the sentence.
- s
the sentence
- Definition Classes
- Parser → Function1
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
bestBinarizedTree(s: IndexedSeq[W]): BinarizedTree[L]
Returns the best parse for the sentence without debinarizing
Returns the best parse for the sentence without debinarizing
- s
sentence
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
compose[A](g: (A) ⇒ IndexedSeq[W]): (A) ⇒ Tree[L]
- Definition Classes
- Function1
- Annotations
- @unspecialized()
- val constraintsFactory: Factory[L, W]
- implicit val debinarizer: Debinarizer[L]
- val decoder: ChartDecoder[L, W]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val lexicon: Lexicon[L, W]
- def marginal(w: IndexedSeq[W]): ParseMarginal[L, W]
- val marginalFactory: Factory[L, W]
-
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
- Function1 → AnyRef → Any
- val topology: RuleTopology[L]
-
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( ... )