Packages

object Lexicon extends Serializable

Companion object to Lexicon containing alternative constructors and generation functions.

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

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 apply(matrix: Array[Array[Double]]): Lexicon

    Constructor for Lexicon.

    Constructor for Lexicon.

    matrix

    A 2-dimensional array representation of a graded lexicon. Rows represent the vocabulary, columns represent the context.

    returns

    A (graded) lexicon.

  5. def apply(matrix: Vector[Vector[Double]]): Lexicon

    Constructor for Lexicon.

    Constructor for Lexicon.

    matrix

    A 2-dimensional vector representation of a graded lexicon. Rows represent the vocabulary, columns represent the context.

    returns

    A (graded) lexicon.

  6. def asBlokpoelEtalListener(lexicon: Lexicon, n: Int): Lexicon

    Returns a transformation of lexicon corresponding to a nth order listener as defined by Blokpoel et al.

    Returns a transformation of lexicon corresponding to a nth order listener as defined by Blokpoel et al. (2020).

    lexicon

    The lexicon to be transformed.

    n

    The order of pragmatic reasoning.

  7. def asBlokpoeletalSpeaker(lexicon: Lexicon, n: Int): Lexicon

    Returns a transformation of this lexicon corresponding to a nth order speaker as defined by Blokpoel et al.

    Returns a transformation of this lexicon corresponding to a nth order speaker as defined by Blokpoel et al. (2020).

    lexicon

    The lexicon to be transformed.

    n

    The order of pragmatic reasoning.

  8. def asFrankGoodmanListener(lexicon: Lexicon, n: Int): Lexicon

    Returns a transformation of this lexicon corresponding to a nth order listener as defined by Frank and Goodman (2012).

    Returns a transformation of this lexicon corresponding to a nth order listener as defined by Frank and Goodman (2012).

    lexicon

    The lexicon to be transformed.

    n

    The order of pragmatic reasoning.

  9. def asFrankGoodmanSpeaker(lexicon: Lexicon, n: Int): Lexicon

    Returns a transformation of this lexicon corresponding to a nth order speaker as defined by Frank and Goodman (2012).

    Returns a transformation of this lexicon corresponding to a nth order speaker as defined by Frank and Goodman (2012).

    lexicon

    The lexicon to be transformed.

    n

    The order of pragmatic reasoning.

  10. def asFrankeDegenListener(lexicon: Lexicon, n: Int): Lexicon

    Returns a transformation of lexicon corresponding to a nth order listener as defined by Franke and Degen (2016).

    Returns a transformation of lexicon corresponding to a nth order listener as defined by Franke and Degen (2016).

    lexicon

    The lexicon to be transformed.

    n

    The order of pragmatic reasoning.

  11. def asFrankeDegenSpeaker(lexicon: Lexicon, n: Int): Lexicon

    Returns a transformation of lexicon corresponding to a nth order speaker as defined by Franke and Degen (2016).

    Returns a transformation of lexicon corresponding to a nth order speaker as defined by Franke and Degen (2016).

    lexicon

    The lexicon to be transformed.

    n

    The order of pragmatic reasoning.

  12. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  13. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  16. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. def generateConsistentAmbiguityMapping(ambiguity: Int, vocabularySize: Int, contextSize: Int): Lexicon

    Generates a lexicon that is consistent (each referent has at least 1 associated word) and has a fixed ambiguity (viz., each word is associated with ambiguity referents).

    Generates a lexicon that is consistent (each referent has at least 1 associated word) and has a fixed ambiguity (viz., each word is associated with ambiguity referents).

    ambiguity

    The number of referents each signal refers to (ranging from 0 to contextSize).

    vocabularySize

    The size of the vocabulary.

    contextSize

    The size of the context.

    returns

    A lexicon.

    Exceptions thrown

    scala.IllegalArgumentException when contextSize < vocabularySize.

    Note

    Ambiguity <= 0 generates the same type of lexicon as ambiguity = 1, and ambiguity > contextSize generates a lexicon of ambiguity = contextSize.

  18. def generateRandomBinaryLexicon(probability: Double, vocabularySize: Int, contextSize: Int): Lexicon

    Generates a randomized binary lexicon (i.e., each word-referent pair has probability to be 1.0).

    Generates a randomized binary lexicon (i.e., each word-referent pair has probability to be 1.0).

    probability

    The density parameter ranging from 0 to 1.

    vocabularySize

    The size of the vocabulary.

    contextSize

    The size of the context.

    returns

    A randomly generated lexicon.

    Note

    When probability is below 0 this returns an empty lexicon, when it is above 1 result a full lexicon.

  19. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  20. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  26. def toString(): String
    Definition Classes
    AnyRef → Any
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped