Documentation ¶
Index ¶
- Constants
- Variables
- func AllCaps(s string) bool
- func Array2List(a []interface{}) *list.List
- func ArrayFloatInit(l int, def float64) []float64
- func ArrayFloatSwap(a1 []float64, a2 []float64)
- func CRASH(msg string, modname int64)
- func Capitalization(s string) int
- func Capitalize(form string, caps int, init bool) string
- func CreateStringWithChar(n int, c string) string
- func EmptyFunc(i interface{})
- func FloatPairsArray2List(a FloatPairsArray) *list.List
- func HasLowercase(s string) bool
- func If(cond bool, trueRes interface{}, falseRes interface{}) interface{}
- func IntPairsArray2List(a IntPairsArray) *list.List
- func IsCapitalized(s string) bool
- func List2Array(l *list.List) []interface{}
- func ListSwap(ls1 *list.List, ls2 *list.List)
- func MultiIndex(s string, i string) int
- func NewEmptySufRule() *sufrule
- func NewSufRuleFromRexEx(c string) *sufrule
- func NewSufRuleFromSufRule(c *sufrule) *sufrule
- func RegExHasSuffix(re *regexp.Regexp, s string) []string
- func Split(s string, sep string) []string
- func StrArray2StrList(a []string) *list.List
- func StrList2StrArray(l *list.List) []string
- func StringsAppend(str ...string) string
- func Substr(s string, b int, l int) string
- func TRACE(lv int, msg string, modname int64)
- func WARNING(msg string, modname int64)
- func WhiteSpace(c uint8) bool
- type Accent
- type AccentsDefault
- type AccentsES
- type AccentsModule
- type Affixes
- func (this *Affixes) ApplyRule(r string, la *list.List, aff string, suf *sufrule, wd *Word, dic *Dictionary)
- func (this *Affixes) CheckRetokenizable(suf *sufrule, form string, lem string, tag string, dic *Dictionary, ...)
- func (this *Affixes) GenerateRoots(kind int, suf *sufrule, rt string) *set.Set
- func (this *Affixes) SearchRootsList(roots *set.Set, aff string, suf *sufrule, wd *Word, dic *Dictionary)
- type Analysis
- type Automat
- type AutomatStatus
- type Bigram
- type CSRKB
- type Chart
- type ChartParser
- type Compound
- type ConfigFile
- func (this *ConfigFile) AddSection(key string, section int)
- func (this *ConfigFile) AtSectionStart() bool
- func (this *ConfigFile) GetContentLine(line *string) bool
- func (this *ConfigFile) GetLineNum() int
- func (this *ConfigFile) GetSection() int
- func (this *ConfigFile) IsCloseSection(s string) bool
- func (this *ConfigFile) IsComment(s string) bool
- func (this *ConfigFile) IsOpenSection(s string) bool
- func (this *ConfigFile) Open(filename string) bool
- func (this *ConfigFile) PrintSections()
- type Crawler
- type Database
- type Dictionary
- func (this *Dictionary) Analyze(se *Sentence)
- func (this *Dictionary) AnnotateWord(w *Word, lw *list.List, override bool) bool
- func (this *Dictionary) CheckContracted(form string, lem string, tag string, lw *list.List) bool
- func (this *Dictionary) CompactData(lems *list.List) string
- func (this *Dictionary) ParseDictEntry(data string, lems *list.List) bool
- func (this *Dictionary) SearchForm(s string, la *list.List)
- func (this *Dictionary) SortList(ls *list.List, pref map[string]string)
- type Disambiguator
- type Edge
- type Element
- type FloatPair
- type FloatPairsArray
- type Grammar
- type HMMTagger
- func (this *HMMTagger) Analyze(s *Sentence)
- func (this *HMMTagger) FindStates(sent *Sentence) *list.List
- func (this *HMMTagger) ProbA_log(state_i *Bigram, state_j *Bigram, w *list.Element) float64
- func (this *HMMTagger) ProbB_log(state_i *Bigram, obs *Word) float64
- func (this *HMMTagger) ProbPi_log(state_i *Bigram) float64
- func (this *HMMTagger) SequenceProb_log(se Sentence, k int) float64
- type IMap
- type IntPair
- type IntPairsArray
- type Inter
- type Keyer
- type Lexer
- type List
- type ListRec
- type ListRecBase
- type ListRecData
- type ListRecEnd
- type LocutionStatus
- type Locutions
- func (this *Locutions) BuildMultiword(se *Sentence, start *list.Element, end *list.Element, fs int, built *bool, ...) *list.Element
- func (this *Locutions) ComputeToken(state int, j *list.Element, se *Sentence) int
- func (this *Locutions) ResetActions(st *LocutionStatus)
- func (this *Locutions) SetMultiwordAnalysis(i *Word, fstate int, st *LocutionStatus)
- func (this *Locutions) ValidMultiWord(w *Word, st *LocutionStatus) bool
- type MITIE
- type MPair
- type Maco
- type MacoOptions
- func (this *MacoOptions) SetDataFiles(usr, pun, dic, aff, comp, loc, nps, qty, prb string)
- func (this *MacoOptions) SetInverseDict(b bool)
- func (this *MacoOptions) SetNumericalPoint(dec string, tho string)
- func (this *MacoOptions) SetRetokContractions(b bool)
- func (this *MacoOptions) SetThreshold(t float64)
- type Map
- type NER
- type NERModule
- func (this *NERModule) BuildMultiword(se *Sentence, start *list.Element, end *list.Element, fs int, built *bool, ...) *list.Element
- func (this *NERModule) ComputeToken(p int, i *list.Element, se *Sentence) int
- func (this *NERModule) ResetActions(st *NERStatus)
- func (this *NERModule) SetMultiwordAnalysis(w *Word, fstate int, st *NERStatus)
- func (this *NERModule) ValidMultiWord(w *Word, st *NERStatus) bool
- type NERStatus
- type NLPEngine
- type NLPOptions
- type NP
- type Node
- type Output
- type POSTAGGER
- type POSTagger
- type Pair
- type ParseTree
- type ParseTreeIterator
- type Pattern
- type PosMapRule
- type PrefTree
- type Probability
- type ProcessorStatus
- type Punts
- type Rule
- type RulesMap
- type SMap
- type SemanticDB
- type SenseInfo
- type Senses
- type Sentence
- type Splitter
- type SplitterStatus
- type Stringer
- type Synset
- type TagSet
- type Tokenizer
- type Trellis
- type UKB
- type Word
- type WordConstIterator
Constants ¶
View Source
const ( UKB_RELATION_FILE = 1 + iota UKB_REX_WNPOS UKB_PR_PARAMS )
View Source
const ( DB_MAP = iota DB_PREFTREE )
View Source
const ( DICTIONARY_INDEX = 1 + iota DICTIONARY_LEMMA_PREF DICTIONARY_POS_PREF DICTIONARY_ENTRIES )
View Source
const ( TAG_DIVIDER = "|" LEMMA_DIVIDER = " " )
View Source
const ( DOCUMENT_SCOPE = iota SENTENCE_SCOPE ND_SCOPE SENTENCE_BIND )
View Source
const ( MOD_CONFIG = 1 + iota MOD_TAG_SET MOD_TOKENIZER MOD_SPLITTER MOD_ACCENT_DEFAULT MOD_ACCENT_ES MOD_AFFIX MOD_PROBABILITY MOD_DICTIONARY MOD_PUNTS MOD_HMM MOD_LOCUTIONS MOD_LANGUAGE MOD_NER MOD_GRAMMAR MOD_CHART )
View Source
const ( GRAMMAR_CATEGORY = 1 + iota GRAMMAR_FORM GRAMMAR_LEMMA GRAMMAR_COMMENT GRAMMAR_HEAD GRAMMAR_ARROW GRAMMAR_BAR GRAMMAR_COMMA GRAMMAR_DOT GRAMMAR_FLAT GRAMMAR_HIDDEN GRAMMAR_NOTOP GRAMMAR_ONLYTOP GRAMMAR_PRIOR GRAMMAR_START GRAMMAR_FILENAME )
View Source
const ( UNIGRAM = 1 + iota BIGRAM TRIGRAM INITIAL WORD SMOOTHING FORBIDDEN TAGSET )
View Source
const ( LOCUTIONS_ST_P = 1 + iota LOCUTIONS_ST_M LOCUTIONS_ST_STOP )
View Source
const ( LOCUTIONS_TK_pref = 1 + iota LOCUTIONS_TK_mw LOCUTIONS_TK_prefL LOCUTIONS_TK_mwL LOCUTIONS_TK_prefP LOCUTIONS_TK_mwP LOCUTIONS_TK_other )
View Source
const ( LOCUTIONS_TAGSET = 1 + iota LOCUTIONS_MULTIWORDS LOCUTIONS_ONLYSELECTED )
View Source
const ( NER_NE_TAG = 1 + iota NER_TITLE_LIMIT NER_AC_TITLE_LIMIT NER_SPLIT_MW )
View Source
const ( NP_NER_TYPE = 1 + iota NP_FUNCTION NP_SPECIAL NP_NAMES NP_NE_IGNORE NP_REX_NOUNADJ NP_REX_CLOSED NP_REX_DATNUMPUNT NP_AFFIXES )
View Source
const ( NP_RE_NA = "^(NC|AQ)" NP_RE_DNP = "^[FWZ]" NP_RE_CLO = "^[DSC]" )
View Source
const ( NP_ST_IN = 1 + iota NP_ST_NP NP_ST_FUN NP_ST_PREF NP_ST_SUF NP_ST_STOP )
View Source
const ( NP_TK_sUnkUpp = 1 + iota NP_TK_sNounUpp NP_TK_mUpper NP_TK_mFun NP_TK_mPref NP_TK_mSuf NP_TK_other )
View Source
const ( PANIC = factorlog.PANIC FATAL = factorlog.FATAL ERROR = factorlog.ERROR WARN = factorlog.WARN DEBUG = factorlog.DEBUG INFO = factorlog.INFO VERBOSE = factorlog.TRACE TAG_NP = "NP" )
View Source
const ( PROBABILITY_SINGLE_TAG = 1 + iota PROBABILITY_CLASS_TAG PROBABILITY_FORM_TAG PROBABILITY_UNKNOWN PROBABILITY_THEETA PROBABILITY_SUFFIXES PROBABILITY_SUFF_BIASS PROBABILITY_LAMBDA_LEX PROBABILITY_LAMBDA_CLASS PROBABILITY_TAGSET )
View Source
const ( SEMDB_WN_POS_MAP = 1 + iota SEMDB_DATA_FILES )
View Source
const ( SPLITTER_GENERAL = 1 + iota SPLITTER_MARKERS SPLITTER_SENT_END SPLITTER_SENT_START )
View Source
const ( SUF = 0 PREF = 1 )
View Source
const ( DIRECT_TRANSLATIONS = 1 + iota DECOMPOSITION_RULES )
View Source
const ( TOKENIZER_MACROS = 1 + iota TOKENIZER_REGEXPS TOKENIZER_ABBREV )
View Source
const ( UPPER_NONE = iota UPPER_ALL UPPER_1ST )
View Source
const AUTOMAT_MAX_STATES = 100
View Source
const AUTOMAT_MAX_TOKENS = 50
View Source
const FORCE_NONE = 0
View Source
const FORCE_RETOK = 1
View Source
const FORCE_TAGGER = 1
View Source
const GRAMMAR_DEFGOV = 0
View Source
const GRAMMAR_NOGOV = 99999
View Source
const NER_TYPE = 1
View Source
const PUNTS_OTHER = "<Other>"
View Source
const RE_WNP = "^[NARV]"
View Source
const SAME = 100
View Source
const SENSES_DUP_ANALYSIS = 1
View Source
const TRELLIS_ZERO_logprob = -math.MaxFloat64
View Source
const UNOBS_INITIAL_STATE = "0.x"
View Source
const UNOBS_WORD = "<UNOBSERVED_WORD>"
View Source
const VERTEX_NOT_FOUND = -1
View Source
const VERY_LONG = 1000
Variables ¶
View Source
var LOG *factorlog.FactorLog
Functions ¶
func Array2List ¶
func ArrayFloatInit ¶
func ArrayFloatSwap ¶
func Capitalization ¶
func CreateStringWithChar ¶
func FloatPairsArray2List ¶
func FloatPairsArray2List(a FloatPairsArray) *list.List
func HasLowercase ¶
func IntPairsArray2List ¶
func IntPairsArray2List(a IntPairsArray) *list.List
func IsCapitalized ¶
func List2Array ¶
func MultiIndex ¶
func NewEmptySufRule ¶
func NewEmptySufRule() *sufrule
func NewSufRuleFromRexEx ¶
func NewSufRuleFromRexEx(c string) *sufrule
func NewSufRuleFromSufRule ¶
func NewSufRuleFromSufRule(c *sufrule) *sufrule
func StrArray2StrList ¶
func StrList2StrArray ¶
func StringsAppend ¶
func WhiteSpace ¶
Types ¶
type Accent ¶
type Accent struct {
// contains filtered or unexported fields
}
func NewAccent ¶
Create the appropriate accents module (according to received options), and create a wrapper to access it.
func (*Accent) FixAccentutation ¶
Wrapper methods: just call the wrapped accents module.
type AccentsDefault ¶
type AccentsDefault struct { }
func NewAccetsDefault ¶
func NewAccetsDefault() *AccentsDefault
func (*AccentsDefault) FixAccentuation ¶
func (this *AccentsDefault) FixAccentuation(candidates *set.Set, suf *sufrule)
type AccentsES ¶
type AccentsES struct {
// contains filtered or unexported fields
}
func NewAccentsES ¶
func NewAccentsES() *AccentsES
func (*AccentsES) FixAccentuation ¶
type AccentsModule ¶
type Affixes ¶
type Affixes struct { ExistingLength [2]*set.Set Longest [2]int // contains filtered or unexported fields }
func NewAffixes ¶
func (*Affixes) CheckRetokenizable ¶
func (*Affixes) GenerateRoots ¶
func (*Affixes) SearchRootsList ¶
type Analysis ¶
type Analysis struct { User []string // contains filtered or unexported fields }
func NewAnalysis ¶
func NewAnalysisFromAnalysis ¶
type AutomatStatus ¶
type AutomatStatus struct {
// contains filtered or unexported fields
}
type ChartParser ¶
type ChartParser struct {
// contains filtered or unexported fields
}
func NewChartParser ¶
func NewChartParser(gram *Grammar) *ChartParser
func (*ChartParser) Analyze ¶
func (this *ChartParser) Analyze(s *Sentence)
type ConfigFile ¶
type ConfigFile struct { SECTION_NONE int SECTION_UNKNOWN int // contains filtered or unexported fields }
func NewConfigFile ¶
func NewConfigFile(skip bool, comment string) ConfigFile
func (*ConfigFile) AddSection ¶
func (this *ConfigFile) AddSection(key string, section int)
func (*ConfigFile) AtSectionStart ¶
func (this *ConfigFile) AtSectionStart() bool
func (*ConfigFile) GetContentLine ¶
func (this *ConfigFile) GetContentLine(line *string) bool
func (*ConfigFile) GetLineNum ¶
func (this *ConfigFile) GetLineNum() int
func (*ConfigFile) GetSection ¶
func (this *ConfigFile) GetSection() int
func (*ConfigFile) IsCloseSection ¶
func (this *ConfigFile) IsCloseSection(s string) bool
func (*ConfigFile) IsComment ¶
func (this *ConfigFile) IsComment(s string) bool
func (*ConfigFile) IsOpenSection ¶
func (this *ConfigFile) IsOpenSection(s string) bool
func (*ConfigFile) Open ¶
func (this *ConfigFile) Open(filename string) bool
func (*ConfigFile) PrintSections ¶
func (this *ConfigFile) PrintSections()
type Crawler ¶
type Crawler struct {
// contains filtered or unexported fields
}
func NewDefaultCrawler ¶
func NewDefaultCrawler() *Crawler
type Database ¶
type Database struct { DBType int // contains filtered or unexported fields }
func NewDatabase ¶
func NewDatabaseFromFile ¶
type Dictionary ¶
type Dictionary struct { InverseDic bool RetokenizeContractions bool AffixAnalysis bool CompoundAnalysis bool // contains filtered or unexported fields }
func NewDictionary ¶
func (*Dictionary) Analyze ¶
func (this *Dictionary) Analyze(se *Sentence)
func (*Dictionary) AnnotateWord ¶
func (*Dictionary) CheckContracted ¶
func (*Dictionary) CompactData ¶
func (this *Dictionary) CompactData(lems *list.List) string
func (*Dictionary) ParseDictEntry ¶
func (this *Dictionary) ParseDictEntry(data string, lems *list.List) bool
func (*Dictionary) SearchForm ¶
func (this *Dictionary) SearchForm(s string, la *list.List)
type Disambiguator ¶
type Disambiguator struct {
// contains filtered or unexported fields
}
func NewDisambiguator ¶
func NewDisambiguator(disFile string) *Disambiguator
func (*Disambiguator) Analyze ¶
func (this *Disambiguator) Analyze(ss *list.List)
type Edge ¶
type Edge struct { *Rule // contains filtered or unexported fields }
func NewEdgeFromEdge ¶
type FloatPair ¶
type FloatPair struct {
// contains filtered or unexported fields
}
func List2FloatPairsArray ¶
type FloatPairsArray ¶
type FloatPairsArray []FloatPair
func (FloatPairsArray) Len ¶
func (a FloatPairsArray) Len() int
func (FloatPairsArray) Less ¶
func (a FloatPairsArray) Less(i, j int) bool
func (FloatPairsArray) Swap ¶
func (a FloatPairsArray) Swap(i, j int)
type Grammar ¶
func NewGrammar ¶
type HMMTagger ¶
type HMMTagger struct { POSTagger Tags *TagSet PTag map[string]float64 PBg Map PTrg map[string]float64 PInitial Map PWord map[string]float64 Forbidden map[string][]string // contains filtered or unexported fields }
func (*HMMTagger) ProbPi_log ¶
type IntPair ¶
type IntPair struct {
// contains filtered or unexported fields
}
func List2IntPairsArray ¶
type IntPairsArray ¶
type IntPairsArray []IntPair
func (IntPairsArray) Len ¶
func (a IntPairsArray) Len() int
func (IntPairsArray) Less ¶
func (a IntPairsArray) Less(i, j int) bool
func (IntPairsArray) Swap ¶
func (a IntPairsArray) Swap(i, j int)
type ListRec ¶
type ListRec struct {
*ListRecBase
}
func NewListRec ¶
func NewListRecData ¶
func NewListRecEnd ¶
type ListRecBase ¶
type ListRecBase struct {
// contains filtered or unexported fields
}
func NewListRecBase ¶
func NewListRecBase(s rune) *ListRecBase
type ListRecData ¶
type ListRecData struct { *ListRecBase // contains filtered or unexported fields }
type ListRecEnd ¶
type ListRecEnd struct {
*ListRecBase
}
type LocutionStatus ¶
type LocutionStatus struct { AutomatStatus // contains filtered or unexported fields }
func NewLocutionStatus ¶
func NewLocutionStatus() *LocutionStatus
type Locutions ¶
func NewLocutions ¶
func (*Locutions) BuildMultiword ¶
func (*Locutions) ComputeToken ¶
func (*Locutions) ResetActions ¶
func (this *Locutions) ResetActions(st *LocutionStatus)
func (*Locutions) SetMultiwordAnalysis ¶
func (this *Locutions) SetMultiwordAnalysis(i *Word, fstate int, st *LocutionStatus)
func (*Locutions) ValidMultiWord ¶
func (this *Locutions) ValidMultiWord(w *Word, st *LocutionStatus) bool
type Maco ¶
type Maco struct {
MultiwordsDetection, NumbersDetection, PunctuationDetection, DatesDetection, QuantitiesDetection, DictionarySearch, ProbabilityAssignment, UserMap, NERecognition bool
// contains filtered or unexported fields
}
func NewMaco ¶
func NewMaco(opts *MacoOptions) *Maco
type MacoOptions ¶
type MacoOptions struct { Lang string LocutionsFile, QuantitiesFile, AffixFile, CompoundFile, DictionaryFile, ProbabilityFile, NPdataFile, PunctuationFile, UserMapFile string Decimal, Thousand string ProbabilityThreshold float64 InverseDict, RetokContractions bool }
func NewMacoOptions ¶
func NewMacoOptions(lang string) *MacoOptions
func (*MacoOptions) SetDataFiles ¶
func (this *MacoOptions) SetDataFiles(usr, pun, dic, aff, comp, loc, nps, qty, prb string)
func (*MacoOptions) SetInverseDict ¶
func (this *MacoOptions) SetInverseDict(b bool)
func (*MacoOptions) SetNumericalPoint ¶
func (this *MacoOptions) SetNumericalPoint(dec string, tho string)
func (*MacoOptions) SetRetokContractions ¶
func (this *MacoOptions) SetRetokContractions(b bool)
func (*MacoOptions) SetThreshold ¶
func (this *MacoOptions) SetThreshold(t float64)
type NERModule ¶
type NERModule struct { Automat TitleLength int AllCapsTitleLength int NETag string // contains filtered or unexported fields }
func NewNERModule ¶
func (*NERModule) BuildMultiword ¶
func (*NERModule) ComputeToken ¶
func (*NERModule) ResetActions ¶
func (*NERModule) SetMultiwordAnalysis ¶
type NERStatus ¶
type NERStatus struct { AutomatStatus // contains filtered or unexported fields }
func NewNERStatus ¶
func NewNERStatus() *NERStatus
type NLPEngine ¶
func NewNLPEngine ¶
func NewNLPEngine(options *NLPOptions) *NLPEngine
func (*NLPEngine) PrintList ¶
func (this *NLPEngine) PrintList(document *models.DocumentEntity)
func (*NLPEngine) PrintTree ¶
func (this *NLPEngine) PrintTree(document *models.DocumentEntity)
func (*NLPEngine) Workflow ¶
func (this *NLPEngine) Workflow(document *models.DocumentEntity, output chan *models.DocumentEntity)
type NLPOptions ¶
type NLPOptions struct { Severity factorlog.Severity DataPath string Lang string TokenizerFile string SplitterFile string MorfoOptions *MacoOptions TaggerFile string ShallowParserFile string SenseFile string UKBFile string DisambiguatorFile string Status func() }
func NewNLPOptions ¶
func NewNLPOptions(dataPath string, lang string, f func()) *NLPOptions
type NP ¶
type NP struct { *NERModule RENounAdj *regexp.Regexp REClosed *regexp.Regexp REDateNumPunct *regexp.Regexp // contains filtered or unexported fields }
func (*NP) ComputeToken ¶
func (*NP) ResetActions ¶
func (*NP) SetMultiWordAnalysis ¶
type POSTagger ¶
type POSTagger struct {
// contains filtered or unexported fields
}
func NewPosTagger ¶
type ParseTree ¶
type ParseTree struct {
// contains filtered or unexported fields
}
func NewEmptyParseTree ¶
func NewEmptyParseTree() *ParseTree
func NewOneNodeParseTree ¶
func NewOneNodeParseTree(info interface{}) *ParseTree
type ParseTreeIterator ¶
type ParseTreeIterator struct {
// contains filtered or unexported fields
}
func NewEmptyParseTreeIterator ¶
func NewEmptyParseTreeIterator() *ParseTreeIterator
func NewParseTreeIteratorFromParseTree ¶
func NewParseTreeIteratorFromParseTree(t *ParseTree) *ParseTreeIterator
func NewParseTreeIteratorFromParseTreeIterator ¶
func NewParseTreeIteratorFromParseTreeIterator(o *ParseTreeIterator) *ParseTreeIterator
func (*ParseTreeIterator) MinusMinus ¶
func (this *ParseTreeIterator) MinusMinus() *ParseTreeIterator
func (*ParseTreeIterator) PlusPlus ¶
func (this *ParseTreeIterator) PlusPlus() *ParseTreeIterator
type PosMapRule ¶
type PosMapRule struct {
// contains filtered or unexported fields
}
type PrefTree ¶
type PrefTree struct { DELIM_LEN int // contains filtered or unexported fields }
func NewPrefTree ¶
func NewPrefTree() *PrefTree
type Probability ¶
type Probability struct { ProbabilityThreshold float64 Tags *TagSet BiassSuffixes float64 LidstoneLambdaLexical float64 LidstoneLambdaClass float64 // contains filtered or unexported fields }
func NewProbability ¶
func NewProbability(probFile string, Threashold float64) *Probability
func (*Probability) Analyze ¶
func (this *Probability) Analyze(se *Sentence)
func (*Probability) AnnotateWord ¶
func (this *Probability) AnnotateWord(w *Word)
type ProcessorStatus ¶
type ProcessorStatus struct { }
type SemanticDB ¶
type SemanticDB struct {
// contains filtered or unexported fields
}
func NewSemanticDB ¶
func NewSemanticDB(wsdFile string) *SemanticDB
type SenseInfo ¶
type SenseInfo struct {
// contains filtered or unexported fields
}
func NewSenseInfo ¶
type Sentence ¶
func NewSentence ¶
func NewSentence() *Sentence
type Splitter ¶
type Splitter struct { SPLIT_AllowBetweenMarkers bool SPLIT_MaxWords int64 // contains filtered or unexported fields }
func NewSplitter ¶
func (*Splitter) CloseSession ¶
func (this *Splitter) CloseSession(ses *SplitterStatus)
func (*Splitter) OpenSession ¶
func (this *Splitter) OpenSession() *SplitterStatus
type SplitterStatus ¶
type TagSet ¶
func (TagSet) GetShortTag ¶
type Tokenizer ¶
type Tokenizer struct {
// contains filtered or unexported fields
}
func NewTokenizer ¶
type Trellis ¶
type Trellis struct { ZERO_logprob float64 InitState *Bigram EndState *Bigram // contains filtered or unexported fields }
func NewTrellis ¶
type Word ¶
type Word struct { *list.List SELECTED int UNSELECTED int ALL int // contains filtered or unexported fields }
func NewWordFromLemma ¶
type WordConstIterator ¶
Source Files ¶
- accents-modules.go
- accents.go
- automat.go
- chart.go
- compounds.go
- config-file.go
- crawler.go
- csrkb.go
- database.go
- dictionary.go
- disambiguator.go
- globals.go
- grammar.go
- hmm.go
- language.go
- lexer.go
- locutions.go
- maco.go
- maps.go
- mitie.go
- ner.go
- nlp.go
- output.go
- preftree.go
- probability.go
- punts.go
- semdb.go
- senses.go
- splitter.go
- suffixes.go
- sufrule.go
- tag-set.go
- tokenizer.go
- trace.go
- utils.go
Click to show internal directories.
Click to hide internal directories.