class LogxKbGenerator extends KbGenerator with LazyLogging
KbGenerator for the agriculture domain.
- Alphabetic
- By Inheritance
- LogxKbGenerator
- KbGenerator
- LazyLogging
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
LogxKbGenerator(config: Config = ConfigFactory.load())
- config
Configuration file for input-output locations
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
- val config: Config
-
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
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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
-
lazy val
logger: Logger
- Attributes
- protected
- Definition Classes
- LazyLogging
-
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
-
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
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
normalize(text: String): String
Returns the input String with ascii-only characters
Returns the input String with ascii-only characters
- Definition Classes
- LogxKbGenerator → KbGenerator
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
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
-
val
stopWords: Set[String]
Stoplist of terms that should never match in NER
Stoplist of terms that should never match in NER
- Definition Classes
- LogxKbGenerator → KbGenerator
-
val
su: ScienceUtils
Utility for normalizing unicode characters
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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
-
lazy val
tokenizer: Tokenizer
Minimal processor, used solely for the tokenization of resources
Minimal processor, used solely for the tokenization of resources
- Definition Classes
- LogxKbGenerator → KbGenerator
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
writeEntries(entries: Seq[KbEntry], nameField: Int, inDir: String, outDir: String): Unit
- Definition Classes
- KbGenerator
Deprecated Value Members
-
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.