Packages

t

org.parsertongue.mr.ner

KbGenerator

trait KbGenerator extends LazyLogging

Parent class for classes that produce taxonomically defined dictionaries from knowledge bases.

Linear Supertypes
LazyLogging, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. KbGenerator
  2. LazyLogging
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def normalize(text: String): String
  2. abstract val stopWords: Set[String]
  3. abstract val tokenizer: Tokenizer

Concrete 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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  6. def convertKB(entry: KbEntry, inputDir: String, nameField: Int): Seq[String]

    Returns tokenized dictionary terms from a tab-separated knowledge base.

    Returns tokenized dictionary terms from a tab-separated knowledge base.

    entry

    The KB to read from and what taxonomic label it corresponds to

    inputDir

    The location of the KB

  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. def loadConfig(configFile: String, nameField: Int, labelField: Int): Seq[KbEntry]

    Returns KbEntrys to be loaded from a tab-separated configuration file

    Returns KbEntrys to be loaded from a tab-separated configuration file

    configFile

    The location of the configuration file

    nameField

    The index of KB name in configFile

    labelField

    The index of the taxonomic label in configFile

  13. lazy val logger: Logger
    Attributes
    protected
    Definition Classes
    LazyLogging
  14. def mkInputFile(entry: KbEntry, inputDir: String): File

    Returns a file location for the input to a KB -> dictionary conversion

    Returns a file location for the input to a KB -> dictionary conversion

    entry

    The KbEntry being converted

    inputDir

    The location of the input kb

  15. def mkOutputFile(entry: KbEntry, outputDir: String): File

    Returns a file location for the output of a KB -> dictionary conversion

    Returns a file location for the output of a KB -> dictionary conversion

    entry

    The KbEntry being converted

    outputDir

    The location for the output dictionaries

  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  19. def now: String

    Returns a String representation of the current date and time when the function is called.

  20. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  21. def toString(): String
    Definition Classes
    AnyRef → Any
  22. def tokenizeResourceLine(line: String): Array[String]

    Tokenizes a resource line.

    Tokenizes a resource line.
    It is important to guarantee that KB text is processed similarly to raw text!

    line

    The KB line

    returns

    The tokenized line

  23. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  25. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. def writeEntries(entries: Seq[KbEntry], nameField: Int, inDir: String, outDir: String): Unit

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from LazyLogging

Inherited from AnyRef

Inherited from Any

Ungrouped