Packages

class LogxKbGenerator extends KbGenerator with LazyLogging

KbGenerator for the agriculture domain.

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

Instance Constructors

  1. new LogxKbGenerator(config: Config = ConfigFactory.load())

    config

    Configuration file for input-output locations

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. val config: Config
  7. 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

    Definition Classes
    KbGenerator
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. 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

    Definition Classes
    KbGenerator
  14. lazy val logger: Logger
    Attributes
    protected
    Definition Classes
    LazyLogging
  15. 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

    Definition Classes
    KbGenerator
  16. 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

    Definition Classes
    KbGenerator
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. def normalize(text: String): String

    Returns the input String with ascii-only characters

    Returns the input String with ascii-only characters

    Definition Classes
    LogxKbGeneratorKbGenerator
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. def now: String

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

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

    Definition Classes
    KbGenerator
  22. val stopWords: Set[String]

    Stoplist of terms that should never match in NER

    Stoplist of terms that should never match in NER

    Definition Classes
    LogxKbGeneratorKbGenerator
  23. val su: ScienceUtils

    Utility for normalizing unicode characters

  24. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  25. def toString(): String
    Definition Classes
    AnyRef → Any
  26. 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

    Definition Classes
    KbGenerator
  27. lazy val tokenizer: Tokenizer

    Minimal processor, used solely for the tokenization of resources

    Minimal processor, used solely for the tokenization of resources

    Definition Classes
    LogxKbGeneratorKbGenerator
  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
    @throws( ... ) @native()
  30. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. def writeEntries(entries: Seq[KbEntry], nameField: Int, inDir: String, outDir: String): Unit
    Definition Classes
    KbGenerator

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 KbGenerator

Inherited from LazyLogging

Inherited from AnyRef

Inherited from Any

Ungrouped