class SimpleLexicon[L, W] extends Lexicon[L, W] with Serializable
A simple lexicon that thresholds to decide when to open up the rare word to all (open) tags
- Annotations
- @SerialVersionUID()
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- SimpleLexicon
- Serializable
- Serializable
- Lexicon
- Factory
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
-
new
SimpleLexicon(labelIndex: Index[L], wordTagCounts: Counter2[L, W, Double], openTagThreshold: Int = 50, closedWordThreshold: Int = 10)
- wordTagCounts
(tag -> word -> count)
- openTagThreshold
how many different word types does a tag have to be seen with to be considered open.
- closedWordThreshold
How many times do we have to see a word before we decide we know its tag set? Words with counts below this will be allowed to be any open tag in addition to their observed tag set.
Type Members
-
trait
Anchoring
extends TagConstraints[L]
- Definition Classes
- Lexicon
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 allowedTags(w: W): Set[Int]
-
def
anchor(w: IndexedSeq[W]): Anchoring
- Definition Classes
- SimpleLexicon → Lexicon → Factory
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
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
-
val
labelIndex: Index[L]
- Definition Classes
- SimpleLexicon → Lexicon → Factory
-
def
morePermissive: Lexicon[L, W]
- Definition Classes
- SimpleLexicon → Lexicon
-
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( ... )