Class/Object

org.clulab.struct

Lexicon

Related Docs: object Lexicon | package struct

Permalink

class Lexicon[T] extends Serializable

Generic lexicon: maps objects of type T to Ints, both ways User: mihais Date: 3/1/13

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Lexicon
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Lexicon()

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def add(s: T): Int

    Permalink

    Adds a string to the lexicon without adding it twice if it already exists

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def contains(f: T): Boolean

    Permalink
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def exists(i: Int): Boolean

    Permalink
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def get(w: T): Option[Int]

    Permalink
  13. def get(i: Int): T

    Permalink

    Fetches the string with the given index from the lexicon This deliberately does NOT check for bounds for fast access.

    Fetches the string with the given index from the lexicon This deliberately does NOT check for bounds for fast access. Use exists() if you want to make sure that your index exists.

    i

    Index of the string in the lexicon

    returns

    The string corresponding to the index

  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  16. def indices: Range

    Permalink
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. def keySet: Set[T]

    Permalink
  19. def mapIndicesTo(indexMap: Map[Int, Int]): Lexicon[T]

    Permalink

    Maps feature indices from their old value to the new values given in the map If an existing feature does not appear in the map, it is simply not included in the new lexicon (this is to support feature selection)

    Maps feature indices from their old value to the new values given in the map If an existing feature does not appear in the map, it is simply not included in the new lexicon (this is to support feature selection)

    indexMap

    Map from old index to new index

  20. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. def remove(s: T): Int

    Permalink

    Removes a member from the lexicon and returns its (former) index, or -1 if it was not found in the lexicon

  24. def saveTo(w: Writer): Unit

    Permalink
  25. def saveTo(fileName: String): Unit

    Permalink
  26. def size: Int

    Permalink
  27. def stats(): Unit

    Permalink
  28. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  29. def toString(): String

    Permalink
    Definition Classes
    Lexicon → AnyRef → Any
  30. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped