WordnetSynonymParser

class WordnetSynonymParser(dedup: Boolean, expand: Boolean, analyzer: Analyzer) : SynonymMap.Parser

Parser for wordnet prolog format

See https://wordnet.princeton.edu/documentation/prologdb5wn for a description of the format.

Constructors

Link copied to clipboard
constructor(dedup: Boolean, expand: Boolean, analyzer: Analyzer)

Functions

Link copied to clipboard
fun add(input: CharsRef, output: CharsRef, includeOrig: Boolean)
Link copied to clipboard

Sugar: analyzes the text with the analyzer and separates by SynonymMap.WORD_SEPARATOR.

Link copied to clipboard
Link copied to clipboard
open override fun parse(input: Reader)