edu.arizona.sista.struct

Lexicon

Related Docs: object Lexicon | package struct

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
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Lexicon()

Value Members

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

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

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

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

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

  5. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  6. def clone(): AnyRef

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

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

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

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

  11. def finalize(): Unit

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

  13. def get(i: Int): T

    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[_]

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

    Definition Classes
    AnyRef → Any
  16. def indices: Range

  17. final def isInstanceOf[T0]: Boolean

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

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

    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

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

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

    Definition Classes
    AnyRef
  23. def saveTo(w: Writer): Unit

  24. def saveTo(fileName: String): Unit

  25. def size: Int

  26. def stats(): Unit

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

    Definition Classes
    AnyRef
  28. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped