cc.factorie.app.nlp.lexicon

MutableLexicon

trait MutableLexicon extends Lexicon

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. MutableLexicon
  2. Lexicon
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def +=(phrase: String): Unit

    Tokenize and lemmatize the input String and add it as a single entry to the Lexicon

  2. abstract def contains[T <: Observation[T]](query: Seq[T]): Boolean

    Definition Classes
    Lexicon
  3. abstract def contains[T <: Observation[T]](query: T): Boolean

    Is this Token (or more generally Observation) a member of a phrase in the lexicon (including single-word phrases)? The query.

    Is this Token (or more generally Observation) a member of a phrase in the lexicon (including single-word phrases)? The query.string will be processed by the lemmatizer. For example if query.string is "New" and query.next.string is "York" and the two-word phrase "New York" is in the lexicon, then this method will return true. But if query.next.string is "shoes" (and "New shoes" is not in the lexicon) this method will return false.

    Definition Classes
    Lexicon
  4. abstract def containsLemmatizedWord(word: String): Boolean

    Is this single word in the lexicon? The input String will not be processed by tokenizer, but will be processed by the lemmatizer.

    Is this single word in the lexicon? The input String will not be processed by tokenizer, but will be processed by the lemmatizer.

    Definition Classes
    Lexicon
  5. abstract def containsLemmatizedWords(words: Seq[String]): Boolean

    Is the pre-tokenized sequence of words in the lexicon? The input words are expected to already be processed by the lemmatizer.

    Is the pre-tokenized sequence of words in the lexicon? The input words are expected to already be processed by the lemmatizer.

    Definition Classes
    Lexicon
  6. abstract def lemmatizer: Lemmatizer

    The string lemmatizer that simplifies lexicon entries and queries before searching for a match.

    The string lemmatizer that simplifies lexicon entries and queries before searching for a match. For example, a common lemmatizer is one that lowercases all strings.

    Definition Classes
    Lexicon
  7. abstract def name: String

    An identifier for this lexicon, suitable for adding as a category to a FeatureVectorVariable[String].

    An identifier for this lexicon, suitable for adding as a category to a FeatureVectorVariable[String].

    Definition Classes
    Lexicon
  8. abstract def tokenizer: StringSegmenter

    The string segmenter that breaks a lexicon entries and queries into (potentially) multi-word phrases.

    The string segmenter that breaks a lexicon entries and queries into (potentially) multi-word phrases.

    Definition Classes
    Lexicon

Concrete Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def ++=(file: File, enc: String = "UTF-8"): MutableLexicon.this.type

    All a lines from the input File to this lexicon.

    All a lines from the input File to this lexicon. File contains multiple newline-separated lexicon entries

  5. def ++=(phrases: String): MutableLexicon.this.type

    All a lines from the input String to this lexicon.

    All a lines from the input String to this lexicon. String contains multiple newline-separated lexicon entries

  6. def ++=(source: Source): MutableLexicon.this.type

    All a lines from the input Source to this lexicon.

    All a lines from the input Source to this lexicon. Source is assumed to contain multiple newline-separated lexicon entries

  7. final def ==(arg0: AnyRef): Boolean

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

    Definition Classes
    Any
  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def contains(untokenizedString: String): Boolean

    Is the input String in the lexicon.

    Is the input String in the lexicon. The input is tokenized and lemmatized; if the tokenizer indicates that it is a multi-word phrase, it will be processed by containsWords, otherwise containsWord.

    Definition Classes
    Lexicon
  12. def contains(span: TokenSpan): Boolean

    Definition Classes
    Lexicon
  13. def containsWord(word: String): Boolean

    Is this single word in the lexicon? The input String will not be processed by tokenizer, but will be processed by the lemmatizer.

    Is this single word in the lexicon? The input String will not be processed by tokenizer, but will be processed by the lemmatizer.

    Definition Classes
    Lexicon
  14. def containsWords(words: Seq[String]): Boolean

    Is the pre-tokenized sequence of words in the lexicon? Each of the input words will be processed by the lemmatizer.

    Is the pre-tokenized sequence of words in the lexicon? Each of the input words will be processed by the lemmatizer.

    Definition Classes
    Lexicon
  15. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  17. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  20. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  21. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  25. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Lexicon

Inherited from AnyRef

Inherited from Any

Ungrouped