SYMBOL INDEX (992 symbols across 111 files) FILE: POSTag.go type POSTag (line 9) | type POSTag method MarshalText (line 22) | func (p POSTag) MarshalText() ([]byte, error) { method UnmarshalText (line 26) | func (p *POSTag) UnmarshalText(text []byte) error { function init (line 13) | func init() { function InPOSTags (line 34) | func InPOSTags(x POSTag, set []POSTag) bool { function IsAdjective (line 43) | func IsAdjective(x POSTag) bool { return InPOSTags(x, Adjectives) } function IsNoun (line 44) | func IsNoun(x POSTag) bool { return InPOSTags(x, Nouns) } function IsProperNoun (line 45) | func IsProperNoun(x POSTag) bool { return InPOSTags(x, ProperNouns) } function IsVerb (line 46) | func IsVerb(x POSTag) bool { return InPOSTags(x, Verbs) } function IsAdverb (line 47) | func IsAdverb(x POSTag) bool { return InPOSTags(x, Adverbs) } function IsInterrogative (line 48) | func IsInterrogative(x POSTag) bool { return InPOSTags(x, Interrogatives) } function IsDeterminer (line 49) | func IsDeterminer(x POSTag) bool { return InPOSTags(x, Determiners) } function IsNumber (line 50) | func IsNumber(x POSTag) bool { return InPOSTags(x, Numbers) } function IsSymbol (line 51) | func IsSymbol(x POSTag) bool { return InPOSTags(x, Symbols) } FILE: POSTag_stanford.go constant BUILD_TAGSET (line 7) | BUILD_TAGSET = "stanfordtags" constant X (line 10) | X POSTag = iota constant UNKNOWN_TAG (line 11) | UNKNOWN_TAG constant ROOT_TAG (line 12) | ROOT_TAG constant CC (line 13) | CC constant CD (line 14) | CD constant DT (line 15) | DT constant EX (line 16) | EX constant FW (line 17) | FW constant IN (line 18) | IN constant JJ (line 19) | JJ constant JJR (line 20) | JJR constant JJS (line 21) | JJS constant LS (line 22) | LS constant MD (line 23) | MD constant NN (line 24) | NN constant NNS (line 25) | NNS constant NNP (line 26) | NNP constant NNPS (line 27) | NNPS constant PDT (line 28) | PDT constant POS (line 29) | POS constant PRP (line 30) | PRP constant PPRP (line 31) | PPRP constant RB (line 32) | RB constant RBR (line 33) | RBR constant RBS (line 34) | RBS constant RP (line 35) | RP constant SYM (line 36) | SYM constant TO (line 37) | TO constant UH (line 38) | UH constant VB (line 39) | VB constant VBD (line 40) | VBD constant VBG (line 41) | VBG constant VBN (line 42) | VBN constant VBP (line 43) | VBP constant VBZ (line 44) | VBZ constant WDT (line 45) | WDT constant WP (line 46) | WP constant PWP (line 47) | PWP constant WRB (line 48) | WRB constant COMMA (line 51) | COMMA constant FULLSTOP (line 52) | FULLSTOP constant OPENQUOTE (line 53) | OPENQUOTE constant CLOSEQUOTE (line 54) | CLOSEQUOTE constant COLON (line 55) | COLON constant DOLLAR (line 56) | DOLLAR constant HASHSIGN (line 57) | HASHSIGN constant LEFTBRACE (line 58) | LEFTBRACE constant RIGHTBRACE (line 59) | RIGHTBRACE constant HYPH (line 63) | HYPH constant AFX (line 64) | AFX constant ADD (line 65) | ADD constant NFP (line 66) | NFP constant GW (line 67) | GW constant XX (line 68) | XX constant MAXTAG (line 70) | MAXTAG function POSTagShortcut (line 74) | func POSTagShortcut(l Lexeme) (POSTag, bool) { function IsIN (line 128) | func IsIN(x POSTag) bool { return x == IN } FILE: POSTag_stanford_string.go constant _POSTag_name (line 9) | _POSTag_name = "XUNKNOWN_TAGROOT_TAGCCCDDTEXFWINJJJJRJJSLSMDNNNNSNNPNNPS... method String (line 13) | func (i POSTag) String() string { FILE: POSTag_universal.go constant BUILD_TAGSET (line 7) | BUILD_TAGSET = "universaltags" constant X (line 10) | X POSTag = iota constant UNKNOWN_TAG (line 11) | UNKNOWN_TAG constant ROOT_TAG (line 12) | ROOT_TAG constant ADJ (line 13) | ADJ constant ADP (line 14) | ADP constant ADV (line 15) | ADV constant AUX (line 16) | AUX constant CONJ (line 17) | CONJ constant DET (line 18) | DET constant INTJ (line 19) | INTJ constant NOUN (line 20) | NOUN constant NUM (line 21) | NUM constant PART (line 22) | PART constant PRON (line 23) | PRON constant PROPN (line 24) | PROPN constant PUNCT (line 25) | PUNCT constant SCONJ (line 26) | SCONJ constant SYM (line 27) | SYM constant VERB (line 28) | VERB constant MAXTAG (line 30) | MAXTAG function POSTagShortcut (line 34) | func POSTagShortcut(l Lexeme) (POSTag, bool) { function IsIN (line 67) | func IsIN(x POSTag) bool { return x == SCONJ } FILE: POSTag_universal_string.go constant _POSTag_name (line 9) | _POSTag_name = "XUNKNOWN_TAGROOT_TAGADJADPADVAUXCONJDETINTJNOUNNUMPARTPR... method String (line 13) | func (i POSTag) String() string { FILE: annotation.go type Annotation (line 15) | type Annotation struct method Clone (line 63) | func (a *Annotation) Clone() *Annotation { method SetHead (line 73) | func (a *Annotation) SetHead(headAnn *Annotation) { method HeadID (line 80) | func (a *Annotation) HeadID() int { method IsNumber (line 87) | func (a *Annotation) IsNumber() bool { method String (line 91) | func (a *Annotation) String() string { method GoString (line 95) | func (a *Annotation) GoString() string { method Process (line 104) | func (a *Annotation) Process(f AnnotationFixer) error { function NewAnnotation (line 37) | func NewAnnotation() *Annotation { function AnnotationFromLexTag (line 46) | func AnnotationFromLexTag(l Lexeme, t POSTag, f AnnotationFixer) *Annota... function RootAnnotation (line 170) | func RootAnnotation() *Annotation { return rootAnnotation } function StartAnnotation (line 171) | func StartAnnotation() *Annotation { return startAnnotation } function NullAnnotation (line 172) | func NullAnnotation() *Annotation { return nullAnnotation } function StringToAnnotation (line 174) | func StringToAnnotation(s string, f AnnotationFixer) *Annotation { type AnnotationFixer (line 184) | type AnnotationFixer interface FILE: annotationSet.go type AnnotationSet (line 10) | type AnnotationSet method Len (line 12) | func (as AnnotationSet) Len() int { return len(as) } method Swap (line 13) | func (as AnnotationSet) Swap(i, j int) { as[i], as[j] = as[j], as[i] } method Less (line 14) | func (as AnnotationSet) Less(i, j int) bool { method Set (line 18) | func (as AnnotationSet) Set() AnnotationSet { method Contains (line 24) | func (as AnnotationSet) Contains(a *Annotation) bool { method Index (line 31) | func (as AnnotationSet) Index(a *Annotation) int { method Add (line 40) | func (as AnnotationSet) Add(a *Annotation) AnnotationSet { FILE: annotationSet_bench_test.go method index2 (line 8) | func (as AnnotationSet) index2(a *Annotation) int { function benchASIndex (line 16) | func benchASIndex(size int, b *testing.B) { function benchASIndex2 (line 31) | func benchASIndex2(size int, b *testing.B) { function BenchmarkAnnotationSetIndex_1 (line 46) | func BenchmarkAnnotationSetIndex_1(b *testing.B) { benchASIndex(1, b) } function BenchmarkAnnotationSetIndex_2 (line 47) | func BenchmarkAnnotationSetIndex_2(b *testing.B) { benchASIndex(2, b) } function BenchmarkAnnotationSetIndex_8 (line 48) | func BenchmarkAnnotationSetIndex_8(b *testing.B) { benchASIndex(8, b) } function BenchmarkAnnotationSetIndex_16 (line 49) | func BenchmarkAnnotationSetIndex_16(b *testing.B) { benchASIndex(16, b) } function BenchmarkAnnotationSetIndex_32 (line 50) | func BenchmarkAnnotationSetIndex_32(b *testing.B) { benchASIndex(32, b) } function BenchmarkAnnotationSetIndex_64 (line 51) | func BenchmarkAnnotationSetIndex_64(b *testing.B) { benchASIndex(64, b) } function BenchmarkAnnotationSetIndex_128 (line 52) | func BenchmarkAnnotationSetIndex_128(b *testing.B) { benchASIndex(128, ... function BenchmarkAnnotationSetIndex_256 (line 53) | func BenchmarkAnnotationSetIndex_256(b *testing.B) { benchASIndex(256, ... function BenchmarkAnnotationSetIndex_512 (line 54) | func BenchmarkAnnotationSetIndex_512(b *testing.B) { benchASIndex(512, ... function BenchmarkAnnotationSetIndex_1024 (line 55) | func BenchmarkAnnotationSetIndex_1024(b *testing.B) { benchASIndex(1024,... function BenchmarkAnnotationSetIndex2_1 (line 57) | func BenchmarkAnnotationSetIndex2_1(b *testing.B) { benchASIndex2(1, ... function BenchmarkAnnotationSetIndex2_2 (line 58) | func BenchmarkAnnotationSetIndex2_2(b *testing.B) { benchASIndex2(2, ... function BenchmarkAnnotationSetIndex2_8 (line 59) | func BenchmarkAnnotationSetIndex2_8(b *testing.B) { benchASIndex2(8, ... function BenchmarkAnnotationSetIndex2_16 (line 60) | func BenchmarkAnnotationSetIndex2_16(b *testing.B) { benchASIndex2(16,... function BenchmarkAnnotationSetIndex2_32 (line 61) | func BenchmarkAnnotationSetIndex2_32(b *testing.B) { benchASIndex2(32,... function BenchmarkAnnotationSetIndex2_64 (line 62) | func BenchmarkAnnotationSetIndex2_64(b *testing.B) { benchASIndex2(64,... function BenchmarkAnnotationSetIndex2_128 (line 63) | func BenchmarkAnnotationSetIndex2_128(b *testing.B) { benchASIndex2(128... function BenchmarkAnnotationSetIndex2_256 (line 64) | func BenchmarkAnnotationSetIndex2_256(b *testing.B) { benchASIndex2(256... function BenchmarkAnnotationSetIndex2_512 (line 65) | func BenchmarkAnnotationSetIndex2_512(b *testing.B) { benchASIndex2(512... function BenchmarkAnnotationSetIndex2_1024 (line 66) | func BenchmarkAnnotationSetIndex2_1024(b *testing.B) { benchASIndex2(102... FILE: browncluster.go type Cluster (line 15) | type Cluster function ReadCluster (line 18) | func ReadCluster(r io.Reader) map[string]Cluster { FILE: cmd/demo/io.go constant posModelFile (line 13) | posModelFile = `model/pos_stanfordtags_universalrel.final.model` constant depModelFile (line 14) | depModelFile = `model/dep_stanfordtags_universalrel.final.model` constant brownCluster (line 15) | brownCluster = `clusters.txt` function io (line 18) | func io() { FILE: cmd/demo/main.go function main (line 13) | func main() { FILE: cmd/demo/nlp.go type stemmer (line 20) | type stemmer struct method Stem (line 22) | func (stemmer) Stem(a string) (string, error) { type fixer (line 26) | type fixer struct method Clusters (line 30) | func (f fixer) Clusters() (map[string]lingo.Cluster, error) { return c... method Lemmatize (line 31) | func (f fixer) Lemmatize(a string, pt lingo.POSTag) ([]string, error) { type nocomp (line 35) | type nocomp method Error (line 37) | func (e nocomp) Error() string { return fmt.Sprintf("no %v", strin... method Component (line 38) | func (e nocomp) Component() string { return string(e) } function pipeline (line 40) | func pipeline(s string) (d *lingo.Dependency, err error) { FILE: cmd/dep/fixer.go type stemmer (line 10) | type stemmer struct method Stem (line 12) | func (stemmer) Stem(a string) (string, error) { type fixer (line 16) | type fixer struct method Clusters (line 20) | func (f fixer) Clusters() (map[string]lingo.Cluster, error) { return c... method Lemmatize (line 21) | func (f fixer) Lemmatize(a string, pt lingo.POSTag) ([]string, error) { type nocomp (line 25) | type nocomp method Error (line 27) | func (e nocomp) Error() string { return fmt.Sprintf("no %v", strin... method Component (line 28) | func (e nocomp) Component() string { return string(e) } FILE: cmd/dep/io.go function validateFlags (line 11) | func validateFlags() { function loadTreebanks (line 38) | func loadTreebanks() { function loadPOSModel (line 48) | func loadPOSModel() { function loadDepModel (line 58) | func loadDepModel() { function saveModel (line 66) | func saveModel() { FILE: cmd/dep/main.go function init (line 34) | func init() { function cleanup (line 44) | func cleanup(sigChan chan os.Signal, cpuprofiling, memprofiling bool) { function main (line 65) | func main() { FILE: cmd/dep/pipeline.go function receive (line 14) | func receive(deps chan *lingo.Dependency, errs, errChan chan error) { function pipeline (line 36) | func pipeline(s string) error { FILE: cmd/dep/train.go function train (line 14) | func train() { FILE: cmd/lexer/main.go function receieve (line 15) | func receieve() { function main (line 21) | func main() { FILE: cmd/pos/crossvalidation.go type testResult (line 17) | type testResult struct method compare (line 22) | func (tr testResult) compare() (int, bool) { function crossValidate (line 44) | func crossValidate(resultChan chan testResult) { function collect (line 86) | func collect(ch chan lingo.AnnotatedSentence, correct lingo.AnnotatedSen... function testModel (line 94) | func testModel(sentences []treebank.SentenceTag) { function cvpipeline (line 115) | func cvpipeline(s string, output chan lingo.AnnotatedSentence) { FILE: cmd/pos/fixer.go type stemmer (line 12) | type stemmer struct method Stem (line 14) | func (stemmer) Stem(a string) (string, error) { type fixer (line 18) | type fixer struct method Clusters (line 22) | func (f fixer) Clusters() (map[string]lingo.Cluster, error) { return c... method Lemmatize (line 23) | func (f fixer) Lemmatize(a string, pt lingo.POSTag) ([]string, error) { type nocomp (line 27) | type nocomp method Error (line 29) | func (e nocomp) Error() string { return fmt.Sprintf("no %v", strin... method Component (line 30) | func (e nocomp) Component() string { return string(e) } FILE: cmd/pos/main.go function receive (line 37) | func receive(sentences chan lingo.AnnotatedSentence, wg *sync.WaitGroup) { function pipeline (line 46) | func pipeline(s string) { function validateFlags (line 62) | func validateFlags() { function loadOrTrain (line 82) | func loadOrTrain() { function cleanup (line 135) | func cleanup(sigChan chan os.Signal, profiling bool) { function main (line 146) | func main() { FILE: corpus/consopt.go type ConsOpt (line 14) | type ConsOpt function WithWords (line 17) | func WithWords(a []string) ConsOpt { function WithOrderedWords (line 53) | func WithOrderedWords(a []string) ConsOpt { function WithSize (line 84) | func WithSize(size int) ConsOpt { function FromDict (line 94) | func FromDict(d map[string]int) ConsOpt { function FromDictWithFreq (line 125) | func FromDictWithFreq(d map[string]struct{ ID, Freq int }) ConsOpt { FILE: corpus/corpus.go type Corpus (line 12) | type Corpus struct method Id (line 66) | func (c *Corpus) Id(word string) (int, bool) { method Word (line 72) | func (c *Corpus) Word(id int) (string, bool) { method Add (line 83) | func (c *Corpus) Add(word string) int { method Size (line 105) | func (c *Corpus) Size() int { method WordFreq (line 111) | func (c *Corpus) WordFreq(word string) int { method IDFreq (line 121) | func (c *Corpus) IDFreq(id int) int { method TotalFreq (line 132) | func (c *Corpus) TotalFreq() int { method MaxWordLength (line 137) | func (c *Corpus) MaxWordLength() int { method WordProb (line 142) | func (c *Corpus) WordProb(word string) (float64, bool) { method Merge (line 154) | func (c *Corpus) Merge(other *Corpus) { method Replace (line 172) | func (c *Corpus) Replace(a, with string) error { method ReplaceWord (line 186) | func (c *Corpus) ReplaceWord(id int, with string) error { function New (line 25) | func New() *Corpus { function Construct (line 42) | func Construct(opts ...ConsOpt) (*Corpus, error) { FILE: corpus/corpus_test.go function TestCorpus (line 9) | func TestCorpus(t *testing.T) { function TestCorpus_Merge (line 48) | func TestCorpus_Merge(t *testing.T) { FILE: corpus/functions.go function GenerateCorpus (line 14) | func GenerateCorpus(sentenceTags []treebank.SentenceTag) *Corpus { function ViterbiSplit (line 61) | func ViterbiSplit(input string, c *Corpus) []string { function CosineSimilarity (line 124) | func CosineSimilarity(a, b []string) float64 { function DamerauLevenshtein (line 174) | func DamerauLevenshtein(s1 string, s2 string) (distance int) { function LongestCommonPrefix (line 274) | func LongestCommonPrefix(strs ...string) string { function StrsToInts (line 311) | func StrsToInts(strs []string) (retVal []int, err error) { function CombineInts (line 336) | func CombineInts(ints []int) int { FILE: corpus/functions_test.go function Test_GenerateCorpus (line 10) | func Test_GenerateCorpus(t *testing.T) { function TestViterbiSplit (line 28) | func TestViterbiSplit(t *testing.T) { function TestCosineSimilarity (line 45) | func TestCosineSimilarity(t *testing.T) { function TestDL (line 73) | func TestDL(t *testing.T) { function TestLCP (line 101) | func TestLCP(t *testing.T) { function TestParseNumber (line 128) | func TestParseNumber(t *testing.T) { FILE: corpus/inflection.go type conversionPattern (line 9) | type conversionPattern struct function newConversionPattern (line 14) | func newConversionPattern(from, to string) conversionPattern { function Pluralize (line 94) | func Pluralize(word string) string { function Singularize (line 115) | func Singularize(word string) string { FILE: corpus/inflection_test.go function TestPluralize (line 28) | func TestPluralize(t *testing.T) { function TestSingularize (line 37) | func TestSingularize(t *testing.T) { FILE: corpus/io.go type sortutil (line 13) | type sortutil struct method Len (line 19) | func (s *sortutil) Len() int { return len(s.words) } method Less (line 20) | func (s *sortutil) Less(i, j int) bool { return s.ids[i] < s.ids[j] } method Swap (line 21) | func (s *sortutil) Swap(i, j int) { function ToDictWithFreq (line 30) | func ToDictWithFreq(c *Corpus) map[string]struct{ ID, Freq int } { function ToDict (line 39) | func ToDict(c *Corpus) map[string]int { method GobEncode (line 48) | func (c *Corpus) GobEncode() ([]byte, error) { method GobDecode (line 80) | func (c *Corpus) GobDecode(buf []byte) error { method LoadOneGram (line 119) | func (c *Corpus) LoadOneGram(r io.Reader) error { FILE: corpus/io_test.go function TestCorpusGob (line 12) | func TestCorpusGob(t *testing.T) { function TestCorpusToDict (line 43) | func TestCorpusToDict(t *testing.T) { function TestCorpusToDictWithFreq (line 60) | func TestCorpusToDictWithFreq(t *testing.T) { function TestLoadOneGram (line 73) | func TestLoadOneGram(t *testing.T) { FILE: corpus/lda.go type LDAModel (line 9) | type LDAModel struct method init (line 36) | func (l *LDAModel) init() { FILE: corpus/test_test.go constant sample1Gram (line 9) | sample1Gram = `the 23135851162 function mediumSentence (line 17) | func mediumSentence() []treebank.SentenceTag { constant EPSILON64 (line 44) | EPSILON64 float64 = 1e-10 function floatEquals64 (line 46) | func floatEquals64(a, b float64) bool { FILE: corpus/utils.go function minInt (line 8) | func minInt(a, b int) int { function maxInt (line 15) | func maxInt(a, b int) int { function dot (line 22) | func dot(a, b []float64) (float64, error) { function mag (line 34) | func mag(a []float64) (float64, error) { FILE: dep/arcStandard.go method canApply (line 8) | func (c *configuration) canApply(t transition) bool { method apply (line 45) | func (c *configuration) apply(t transition) { method oracle (line 62) | func (c *configuration) oracle(goldParse *lingo.Dependency) (t transitio... FILE: dep/arcStandard_test.go function TestCanApply (line 10) | func TestCanApply(t *testing.T) { function TestOracle (line 67) | func TestOracle(t *testing.T) { FILE: dep/configuration.go type head (line 11) | type head constant DOES_NOT_EXIST (line 14) | DOES_NOT_EXIST head = iota - 1 type configuration (line 18) | type configuration struct method String (line 50) | func (c *configuration) String() string { method GoString (line 54) | func (c *configuration) GoString() string { method bufferSize (line 58) | func (c *configuration) bufferSize() int { method stackSize (line 62) | func (c *configuration) stackSize() int { method head (line 66) | func (c *configuration) head(i int) head { method stackValue (line 72) | func (c *configuration) stackValue(i int) head { method bufferValue (line 80) | func (c *configuration) bufferValue(i int) head { method pop (line 91) | func (c *configuration) pop() head { method removeStack (line 98) | func (c *configuration) removeStack(i int) { method removeSecondTopStack (line 103) | func (c *configuration) removeSecondTopStack() bool { method removeTopStack (line 113) | func (c *configuration) removeTopStack() bool { method label (line 125) | func (c *configuration) label(i head) lingo.DependencyType { method annotation (line 141) | func (c *configuration) annotation(i head) *lingo.Annotation { method lc (line 157) | func (c *configuration) lc(k, cnt head) head { method rc (line 174) | func (c *configuration) rc(k, cnt head) head { method hasOtherChildren (line 191) | func (c *configuration) hasOtherChildren(i int, goldParse *lingo.Depen... method isTerminal (line 200) | func (c *configuration) isTerminal() bool { method shift (line 205) | func (c *configuration) shift() bool { function newConfiguration (line 26) | func newConfiguration(sentence lingo.AnnotatedSentence, fromGold bool) *... FILE: dep/configuration_test.go function TestStackAppendRemove (line 10) | func TestStackAppendRemove(t *testing.T) { function TestConfiguration_StackValue (line 40) | func TestConfiguration_StackValue(t *testing.T) { FILE: dep/debug.go constant BUILD_DEBUG (line 16) | BUILD_DEBUG = "PARSER: DEBUG BUILD" constant BUILD_DIAG (line 17) | BUILD_DIAG = "Diagnostic Build" constant DEBUG (line 19) | DEBUG = true function tabcount (line 25) | func tabcount() int { function enterLoggingContext (line 29) | func enterLoggingContext() { function leaveLoggingContext (line 35) | func leaveLoggingContext() { function logf (line 48) | func logf(format string, others ...interface{}) { function logTrainingProgress (line 55) | func logTrainingProgress(iteration, correct, total, length, possibles in... function logMemStats (line 64) | func logMemStats() { function recoverFrom (line 79) | func recoverFrom(format string, attrs ...interface{}) { method SprintFeatures (line 87) | func (d *Parser) SprintFeatures(features []int) string { function SprintScores (line 120) | func SprintScores(scores []float64, ts []transition) string { function SprintFloatSlice (line 132) | func SprintFloatSlice(a []float64) string { FILE: dep/dependencyParser.go type Parser (line 17) | type Parser struct method Run (line 38) | func (d *Parser) Run() { method predict (line 52) | func (d *Parser) predict(sentence lingo.AnnotatedSentence) (*lingo.Dep... method String (line 111) | func (d *Parser) String() string { function New (line 26) | func New(m *Model) *Parser { FILE: dep/errors.go type componentUnavailable (line 9) | type componentUnavailable method Error (line 11) | func (c componentUnavailable) Error() string { return fmt.Sprintf(... method Component (line 12) | func (c componentUnavailable) Component() string { return string(c) } type TarpitError (line 17) | type TarpitError struct method Error (line 19) | func (err TarpitError) Error() string { return "Tarpit Error" } type NonProjectiveError (line 22) | type NonProjectiveError struct method Error (line 24) | func (err NonProjectiveError) Error() string { return "Non-projective ... FILE: dep/evaluation.go type Performance (line 12) | type Performance struct method String (line 20) | func (p Performance) String() string { function Evaluate (line 33) | func Evaluate(predictedTrees, goldTrees []*lingo.Dependency) Performance { method crossValidate (line 87) | func (t *Trainer) crossValidate(st []treebank.SentenceTag) Performance { method predMany (line 97) | func (t *Trainer) predMany(sentenceTags []treebank.SentenceTag) []*lingo... method pred (line 110) | func (t *Trainer) pred(as lingo.AnnotatedSentence) (*lingo.Dependency, e... FILE: dep/example.go type example (line 12) | type example struct function makeExamples (line 19) | func makeExamples(sentenceTags []treebank.SentenceTag, conf NNConfig, di... function makeOneExample (line 43) | func makeOneExample(i int, sentenceTag treebank.SentenceTag, dict *corpu... function shuffleExamples (line 84) | func shuffleExamples(a []example) { FILE: dep/example_test.go function TestMakeExamples (line 9) | func TestMakeExamples(t *testing.T) { FILE: dep/featureExtraction.go function getFeatures (line 9) | func getFeatures(c *configuration, dict *corpus.Corpus) []int { constant POS_OFFSET (line 141) | POS_OFFSET int = 18 constant DEP_OFFSET (line 142) | DEP_OFFSET = 36 constant STACK_OFFSET (line 143) | STACK_OFFSET = 6 constant STACK_NUMBER (line 144) | STACK_NUMBER = 6 FILE: dep/features.go type feature (line 8) | type feature constant s0w (line 15) | s0w feature = iota constant s1w (line 16) | s1w constant s2w (line 17) | s2w constant b0w (line 19) | b0w constant b1w (line 20) | b1w constant b2w (line 21) | b2w constant s0l1w (line 23) | s0l1w constant s0r1w (line 24) | s0r1w constant s0l2w (line 25) | s0l2w constant s0r2w (line 26) | s0r2w constant s0llw (line 27) | s0llw constant s0rrw (line 28) | s0rrw constant s1l1w (line 30) | s1l1w constant s1r1w (line 31) | s1r1w constant s1l2w (line 32) | s1l2w constant s1r2w (line 33) | s1r2w constant s1llw (line 34) | s1llw constant s1rrw (line 35) | s1rrw constant s0t (line 38) | s0t constant s1t (line 39) | s1t constant s2t (line 40) | s2t constant b0t (line 42) | b0t constant b1t (line 43) | b1t constant b2t (line 44) | b2t constant s0l1t (line 46) | s0l1t constant s0r1t (line 47) | s0r1t constant s0l2t (line 48) | s0l2t constant s0r2t (line 49) | s0r2t constant s0llt (line 50) | s0llt constant s0rrt (line 51) | s0rrt constant s1l1t (line 53) | s1l1t constant s1r1t (line 54) | s1r1t constant s1l2t (line 55) | s1l2t constant s1r2t (line 56) | s1r2t constant s1llt (line 57) | s1llt constant s1rrt (line 58) | s1rrt constant s0l1d (line 61) | s0l1d constant s0r1d (line 62) | s0r1d constant s0l2d (line 63) | s0l2d constant s0r2d (line 64) | s0r2d constant s0lld (line 65) | s0lld constant s0rrd (line 66) | s0rrd constant s1l1d (line 68) | s1l1d constant s1r1d (line 69) | s1r1d constant s1l2d (line 70) | s1l2d constant s1r2d (line 71) | s1r2d constant s1lld (line 72) | s1lld constant s1rrd (line 73) | s1rrd constant MAXFEATURE (line 75) | MAXFEATURE constant wordFeatsStartAt (line 79) | wordFeatsStartAt int = int(lingo.MAXTAG) + int(lingo.MAXDEPTYPE) constant labelFeatsStartAt (line 80) | labelFeatsStartAt = int(lingo.MAXTAG) constant posFeatsStartAt (line 81) | posFeatsStartAt = 0 FILE: dep/features_string.go constant _feature_name (line 7) | _feature_name = "s0ws1ws2wb0wb1wb2ws0l1ws0r1ws0l2ws0r2ws0llws0rrws1l1ws1... method String (line 11) | func (i feature) String() string { FILE: dep/fix.go function fix (line 10) | func fix(d *lingo.Dependency) { function properNounSpans (line 98) | func properNounSpans(d *lingo.Dependency) (retVal []span) { FILE: dep/init.go function init (line 5) | func init() { FILE: dep/models.go type Model (line 17) | type Model struct method Corpus (line 23) | func (m *Model) Corpus() *corpus.Corpus { return m.corpus } method WordEmbeddings (line 25) | func (m *Model) WordEmbeddings() *tensor.Dense { method POSTagEmbeddings (line 31) | func (m *Model) POSTagEmbeddings() *tensor.Dense { method String (line 37) | func (m *Model) String() string { method Save (line 48) | func (m *Model) Save(filename string) error { method SaveWriter (line 60) | func (m *Model) SaveWriter(f io.WriteCloser) error { function Load (line 81) | func Load(filename string) (*Model, error) { function LoadReader (line 89) | func LoadReader(rd io.ReadCloser) (*Model, error) { FILE: dep/models_test.go function TestModel_SaveLoad (line 11) | func TestModel_SaveLoad(t *testing.T) { FILE: dep/move.go type Move (line 4) | type Move constant Shift (line 9) | Shift Move = iota constant Left (line 10) | Left constant Right (line 11) | Right constant MAXMOVE (line 13) | MAXMOVE FILE: dep/move_string.go constant _Move_name (line 7) | _Move_name = "ShiftLeftRightMAXMOVE" method String (line 11) | func (i Move) String() string { FILE: dep/nn2.go type may (line 12) | type may struct method doUnary (line 17) | func (m *may) doUnary(fn func(*G.Node) (*G.Node, error)) { method doBinary (line 24) | func (m *may) doBinary(fn func(a, b *G.Node) (*G.Node, error), other *... method doSwapBinary (line 31) | func (m *may) doSwapBinary(fn func(a, b *G.Node) (*G.Node, error), oth... type neuralnetwork2 (line 38) | type neuralnetwork2 struct method initialized (line 92) | func (nn *neuralnetwork2) initialized() bool { method init (line 102) | func (nn *neuralnetwork2) init() error { method fwd (line 211) | func (nn *neuralnetwork2) fwd() error { method costProgress (line 288) | func (nn *neuralnetwork2) costProgress() <-chan G.Value { method train (line 296) | func (nn *neuralnetwork2) train(examples []example) error { method pred (line 347) | func (nn *neuralnetwork2) pred(ind []int) (int, error) { method feats2vec (line 372) | func (nn *neuralnetwork2) feats2vec(indicators []int) error { FILE: dep/nn2_io.go method String (line 15) | func (nn *neuralnetwork2) String() string { method GobEncode (line 41) | func (nn *neuralnetwork2) GobEncode() ([]byte, error) { method GobDecode (line 87) | func (nn *neuralnetwork2) GobDecode(buf []byte) error { FILE: dep/nn2_io_test.go function TestNNIO (line 14) | func TestNNIO(t *testing.T) { FILE: dep/nn2_test.go function TestNN2 (line 12) | func TestNN2(t *testing.T) { FILE: dep/nnconfig.go type NNConfig (line 13) | type NNConfig struct method String (line 28) | func (c NNConfig) String() string { method GobEncode (line 48) | func (c NNConfig) GobEncode() ([]byte, error) { method GobDecode (line 73) | func (c *NNConfig) GobDecode(p []byte) error { function init (line 101) | func init() { FILE: dep/release.go constant BUILD_DEBUG (line 5) | BUILD_DEBUG = "PARSER: RELEASE BUILD" constant BUILD_DIAG (line 6) | BUILD_DIAG = "Non-Diagnostic Build" constant DEBUG (line 8) | DEBUG = false function enterLoggingContext (line 14) | func enterLoggingContext() {} function leaveLoggingContext (line 16) | func leaveLoggingContext() {} function logTrainingProgress (line 18) | func logTrainingProgress(iteration, correct, total, length, possibles in... function logMemStats (line 20) | func logMemStats() {} function logf (line 22) | func logf(format string, others ...interface{}) {} function recoverFrom (line 24) | func recoverFrom(format string, attrs ...interface{}) {} method SprintFeatures (line 26) | func (d *Parser) SprintFeatures(feature []int) string { return "" } function SprintScores (line 28) | func SprintScores(scores []float64, ts []transition) string { return "" } FILE: dep/span.go type span (line 3) | type span struct method combine (line 14) | func (s span) combine(other span) span { function makeSpan (line 7) | func makeSpan(start, end int) span { FILE: dep/test_test.go type dummyLem (line 18) | type dummyLem struct method Lemmatize (line 20) | func (dummyLem) Lemmatize(s string, pt lingo.POSTag) ([]string, error) { type dummyStemmer (line 24) | type dummyStemmer struct method Stem (line 26) | func (dummyStemmer) Stem(s string) (string, error) { type dummyFix (line 30) | type dummyFix struct method Clusters (line 35) | func (dummyFix) Clusters() (map[string]lingo.Cluster, error) { constant nnps (line 39) | nnps = `1 Guerrillas guerrilla NOUN NNS Number=Plur 2 nsubj _ _ constant simple (line 61) | simple = `1 Yet yet CONJ CC _ 5 cc _ _ constant med (line 74) | med = `1 President President PROPN NNP Number=Sing 2 compound _ _ constant long (line 96) | long = `1 Now now ADV RB _ 5 advmod _ _ constant cvconllu (line 142) | cvconllu = `1 Google Google PROPN NNP Number=Sing 6 nsubj _ _ function lotsaNNP (line 161) | func lotsaNNP() *lingo.Dependency { function simpleSentence (line 169) | func simpleSentence() []treebank.SentenceTag { function mediumSentence (line 174) | func mediumSentence() []treebank.SentenceTag { function longSentence (line 180) | func longSentence() []treebank.SentenceTag { function allSentences (line 185) | func allSentences() []treebank.SentenceTag { function cvSentences (line 193) | func cvSentences() []treebank.SentenceTag { function hash (line 197) | func hash(s string) string { function cache (line 203) | func cache(input string, s lingo.AnnotatedSentence) { function useCached (line 221) | func useCached(filename string) *lingo.Dependency { FILE: dep/train.go type TrainerConsOpt (line 15) | type TrainerConsOpt function WithTrainingModel (line 18) | func WithTrainingModel(m *Model) TrainerConsOpt { function WithTrainingSet (line 26) | func WithTrainingSet(st []treebank.SentenceTag) TrainerConsOpt { function WithCrossValidationSet (line 34) | func WithCrossValidationSet(st []treebank.SentenceTag) TrainerConsOpt { function WithConfig (line 42) | func WithConfig(conf NNConfig) TrainerConsOpt { function WithLemmatizer (line 53) | func WithLemmatizer(l lingo.Lemmatizer) TrainerConsOpt { function WithStemmer (line 66) | func WithStemmer(s lingo.Stemmer) TrainerConsOpt { function WithCluster (line 78) | func WithCluster(c map[string]lingo.Cluster) TrainerConsOpt { function WithCorpus (line 86) | func WithCorpus(c *corpus.Corpus) TrainerConsOpt { function WithGeneratedCorpus (line 95) | func WithGeneratedCorpus(sts ...treebank.SentenceTag) TrainerConsOpt { type Trainer (line 110) | type Trainer struct method Lemmatize (line 153) | func (t *Trainer) Lemmatize(a string, pt lingo.POSTag) ([]string, erro... method Stem (line 161) | func (t *Trainer) Stem(a string) (string, error) { method Clusters (line 169) | func (t *Trainer) Clusters() (map[string]lingo.Cluster, error) { method Cost (line 180) | func (t *Trainer) Cost() <-chan float64 { method Perf (line 188) | func (t *Trainer) Perf() <-chan Performance { method Init (line 198) | func (t *Trainer) Init() (err error) { method Train (line 209) | func (t *Trainer) Train(epochs int) error { method TrainWithoutCrossValidation (line 220) | func (t *Trainer) TrainWithoutCrossValidation(epochs int) error { method train (line 225) | func (t *Trainer) train(epochs int) error { method crossValidateTrain (line 257) | func (t *Trainer) crossValidateTrain(epochs int) error { method pretrainCheck (line 319) | func (t *Trainer) pretrainCheck() error { method handleCosts (line 337) | func (t *Trainer) handleCosts() (epochChan chan struct{}) { function NewTrainer (line 133) | func NewTrainer(opts ...TrainerConsOpt) *Trainer { FILE: dep/train_test.go function TestTrainerInitializations (line 11) | func TestTrainerInitializations(t *testing.T) { function TestTrainer_train (line 49) | func TestTrainer_train(t *testing.T) { function TestTestTrainer_crossValidateTrain (line 136) | func TestTestTrainer_crossValidateTrain(t *testing.T) { FILE: dep/transition.go type transition (line 10) | type transition struct method String (line 51) | func (t transition) String() string { function buildTransitions (line 18) | func buildTransitions(labels []lingo.DependencyType) []transition { function lookupTransition (line 55) | func lookupTransition(t transition, table []transition) int { function init (line 65) | func init() { FILE: dep/util.go function minInt (line 3) | func minInt(a, b int) int { function maxInt (line 10) | func maxInt(a, b int) int { FILE: dependency.go type Dependency (line 13) | type Dependency struct method Sentence (line 64) | func (d *Dependency) Sentence() AnnotatedSentence { return d.Annotated... method Lefts (line 65) | func (d *Dependency) Lefts() [][]int { return d.lefts } method Rights (line 66) | func (d *Dependency) Rights() [][]int { return d.rights } method WordCount (line 67) | func (d *Dependency) WordCount() int { return d.wordCount } method N (line 68) | func (d *Dependency) N() int { return d.n } method SetLefts (line 71) | func (d *Dependency) SetLefts(l [][]int) { d.lefts = l } method SetRights (line 72) | func (d *Dependency) SetRights(r [][]int) { d.rights = r } method Head (line 74) | func (d *Dependency) Head(i int) int { method Label (line 82) | func (d *Dependency) Label(i int) DependencyType { method Annotation (line 90) | func (d *Dependency) Annotation(i int) *Annotation { method AddArc (line 98) | func (d *Dependency) AddArc(head, child int, label DependencyType) { method AddChild (line 103) | func (d *Dependency) AddChild(head, child int) { method AddRel (line 116) | func (d *Dependency) AddRel(child int, rel DependencyType) { method HasSingleRoot (line 121) | func (d *Dependency) HasSingleRoot() bool { method IsLegal (line 133) | func (d *Dependency) IsLegal() bool { method IsProjective (line 159) | func (d *Dependency) IsProjective() bool { method projectiveVisit (line 164) | func (d *Dependency) projectiveVisit(w int) bool { method Root (line 186) | func (d *Dependency) Root() int { method SprintRel (line 196) | func (d *Dependency) SprintRel() string { type depConsOpt (line 26) | type depConsOpt function FromAnnotatedSentence (line 29) | func FromAnnotatedSentence(s AnnotatedSentence) depConsOpt { function AllocTree (line 40) | func AllocTree() depConsOpt { function NewDependency (line 55) | func NewDependency(opts ...depConsOpt) *Dependency { type DependencyEdge (line 206) | type DependencyEdge struct type edgeByID (line 214) | type edgeByID method Len (line 216) | func (b edgeByID) Len() int { return len(b) } method Swap (line 217) | func (b edgeByID) Swap(i, j int) { b[i], b[j] = b[j], b[i] } method Less (line 218) | func (b edgeByID) Less(i, j int) bool { return b[i].Dep.ID < b[j].Dep.... FILE: dependencyTree.go type DependencyTree (line 13) | type DependencyTree struct method AddChild (line 32) | func (d *DependencyTree) AddChild(child *DependencyTree) { method AddRel (line 36) | func (d *DependencyTree) AddRel(rel DependencyType) { method walk (line 40) | func (d *DependencyTree) walk(c chan *DependencyTree, wg *sync.WaitGro... method Dot (line 50) | func (d *DependencyTree) Dot() string { method Walk (line 91) | func (d *DependencyTree) Walk(fn func(interface{})) { function NewDependencyTree (line 23) | func NewDependencyTree(parent *DependencyTree, ID int, ann *Annotation) ... function dotString (line 65) | func dotString(c chan *DependencyTree, out chan string) { FILE: dependencyType.go type DependencyType (line 9) | type DependencyType method MarshalText (line 22) | func (dt DependencyType) MarshalText() ([]byte, error) { method UnmarshalText (line 26) | func (dt *DependencyType) UnmarshalText(text []byte) error { function init (line 13) | func init() { function InDepTypes (line 35) | func InDepTypes(x DependencyType, set []DependencyType) bool { function IsModifier (line 44) | func IsModifier(x DependencyType) bool { return InDepTypes(x, Modif... function IsCompound (line 45) | func IsCompound(x DependencyType) bool { return InDepTypes(x, Compo... function IsDeterminerRel (line 46) | func IsDeterminerRel(x DependencyType) bool { return InDepTypes(x, Deter... function IsMultiword (line 47) | func IsMultiword(x DependencyType) bool { return InDepTypes(x, Multi... function IsQuantifier (line 48) | func IsQuantifier(x DependencyType) bool { return InDepTypes(x, Quant... FILE: dependencyType_stanford.go constant BUILD_RELSET (line 5) | BUILD_RELSET = "stanfordrel" constant NoDepType (line 11) | NoDepType DependencyType = iota constant Dep (line 12) | Dep constant Root (line 13) | Root constant Aux (line 14) | Aux constant AuxPass (line 15) | AuxPass constant Cop (line 16) | Cop constant Arg (line 17) | Arg constant Agent (line 18) | Agent constant Comp (line 19) | Comp constant AComp (line 20) | AComp constant CComp (line 21) | CComp constant XComp (line 22) | XComp constant Obj (line 23) | Obj constant DObj (line 24) | DObj constant IObj (line 25) | IObj constant PObj (line 26) | PObj constant Subj (line 27) | Subj constant NSubj (line 28) | NSubj constant NSubjPass (line 29) | NSubjPass constant CSubj (line 30) | CSubj constant CSubjPass (line 31) | CSubjPass constant Coordination (line 32) | Coordination constant Conj (line 33) | Conj constant Expl (line 34) | Expl constant Mod (line 35) | Mod constant AMod (line 36) | AMod constant Appos (line 37) | Appos constant Advcl (line 38) | Advcl constant Det (line 39) | Det constant Predet (line 40) | Predet constant Preconj (line 41) | Preconj constant Vmod (line 42) | Vmod constant MWE (line 43) | MWE constant Mark (line 44) | Mark constant AdvMod (line 45) | AdvMod constant Neg (line 46) | Neg constant RCMod (line 47) | RCMod constant QuantMod (line 48) | QuantMod constant NounMod (line 49) | NounMod constant NPAdvMod (line 50) | NPAdvMod constant TMod (line 51) | TMod constant Num (line 52) | Num constant NumberElement (line 53) | NumberElement constant Prep (line 54) | Prep constant Poss (line 55) | Poss constant Possessive (line 56) | Possessive constant PRT (line 57) | PRT constant Parataxis (line 58) | Parataxis constant GoesWith (line 59) | GoesWith constant Punct (line 60) | Punct constant Ref (line 61) | Ref constant SDep (line 62) | SDep constant XSubj (line 63) | XSubj constant Case (line 66) | Case constant Compound (line 67) | Compound constant NMod (line 68) | NMod constant Discourse (line 69) | Discourse constant NumMod (line 70) | NumMod constant RelCl (line 71) | RelCl constant NFinCl (line 72) | NFinCl constant NMod_Poss (line 73) | NMod_Poss constant NMod_NPMod (line 74) | NMod_NPMod constant Vocative (line 75) | Vocative constant List (line 76) | List constant MWPrep (line 77) | MWPrep constant Remnant (line 78) | Remnant constant Acl (line 79) | Acl constant NPMod (line 80) | NPMod constant MDVod (line 81) | MDVod constant DetMod (line 82) | DetMod constant PComp (line 85) | PComp constant MAXDEPTYPE (line 87) | MAXDEPTYPE FILE: dependencyType_stanford_string.go constant _DependencyType_name (line 9) | _DependencyType_name = "NoDepTypeDepRootNSubjNSubjPassDObjIObjCSubjCSubj... method String (line 13) | func (i DependencyType) String() string { FILE: dependencyType_universal.go constant BUILD_RELSET (line 5) | BUILD_RELSET = "universalrel" constant NoDepType (line 11) | NoDepType DependencyType = iota constant Dep (line 12) | Dep constant Root (line 13) | Root constant NSubj (line 18) | NSubj constant NSubjPass (line 19) | NSubjPass constant DObj (line 20) | DObj constant IObj (line 21) | IObj constant CSubj (line 24) | CSubj constant CSubjPass (line 25) | CSubjPass constant CComp (line 26) | CComp constant XComp (line 28) | XComp constant NumMod (line 33) | NumMod constant Appos (line 34) | Appos constant NMod (line 35) | NMod constant ACl (line 38) | ACl constant ACl_RelCl (line 39) | ACl_RelCl constant Det (line 40) | Det constant Det_PreDet (line 41) | Det_PreDet constant AMod (line 44) | AMod constant Neg (line 45) | Neg constant Case (line 48) | Case constant NMod_NPMod (line 53) | NMod_NPMod constant NMod_TMod (line 54) | NMod_TMod constant NMod_Poss (line 55) | NMod_Poss constant AdvCl (line 58) | AdvCl constant AdvMod (line 61) | AdvMod constant Compound (line 64) | Compound constant Compound_Part (line 65) | Compound_Part constant Name (line 66) | Name constant MWE (line 67) | MWE constant Foreign (line 68) | Foreign constant GoesWith (line 69) | GoesWith constant List (line 72) | List constant Dislocated (line 73) | Dislocated constant Parataxis (line 74) | Parataxis constant Remnant (line 75) | Remnant constant Reparandum (line 76) | Reparandum constant Vocative (line 81) | Vocative constant Discourse (line 82) | Discourse constant Expl (line 83) | Expl constant Aux (line 86) | Aux constant AuxPass (line 87) | AuxPass constant Cop (line 88) | Cop constant Mark (line 91) | Mark constant Punct (line 92) | Punct constant Conj (line 96) | Conj constant Coordination (line 97) | Coordination constant CC_PreConj (line 98) | CC_PreConj constant MAXDEPTYPE (line 100) | MAXDEPTYPE FILE: dependencyType_universal_string.go constant _DependencyType_name (line 9) | _DependencyType_name = "NoDepTypeDepRootNSubjNSubjPassDObjIObjCSubjCSubj... method String (line 13) | func (i DependencyType) String() string { FILE: errors.go type componentUnavailable (line 3) | type componentUnavailable interface FILE: interfaces.go type Lemmatizer (line 10) | type Lemmatizer interface type Stemmer (line 15) | type Stemmer interface type Sentencer (line 20) | type Sentencer interface type Corpus (line 25) | type Corpus interface type WordEmbeddings (line 59) | type WordEmbeddings interface FILE: io.go type dummyAnnotation (line 12) | type dummyAnnotation struct method MarshalJSON (line 39) | func (a *Annotation) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 81) | func (a *Annotation) UnmarshalJSON(b []byte) error { method MarshalJSON (line 105) | func (as AnnotatedSentence) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 122) | func (as *AnnotatedSentence) UnmarshalJSON(b []byte) error { FILE: io_test.go function TestAnnotationJSON (line 8) | func TestAnnotationJSON(t *testing.T) { function TestAnnotatedSentenceJSON (line 40) | func TestAnnotatedSentenceJSON(t *testing.T) { FILE: lexeme.go type LexemeType (line 10) | type LexemeType constant EOF (line 13) | EOF LexemeType = iota constant Word (line 14) | Word constant Disambig (line 15) | Disambig constant URI (line 16) | URI constant Number (line 17) | Number constant Date (line 18) | Date constant Time (line 19) | Time constant Punctuation (line 20) | Punctuation constant Symbol (line 21) | Symbol constant Space (line 22) | Space constant SystemUse (line 23) | SystemUse type Lexeme (line 26) | type Lexeme struct method Fix (line 45) | func (l Lexeme) Fix() Lexeme { method String (line 53) | func (l Lexeme) String() string { method GoString (line 62) | func (l Lexeme) GoString() string { function MakeLexeme (line 35) | func MakeLexeme(s string, t LexemeType) Lexeme { function StartLexeme (line 75) | func StartLexeme() Lexeme { return startLexeme } function RootLexeme (line 76) | func RootLexeme() Lexeme { return rootLexeme } function NullLexeme (line 77) | func NullLexeme() Lexeme { return nullLexeme } FILE: lexemetype_string.go constant _LexemeType_name (line 7) | _LexemeType_name = "EOFWordDisambigURINumberDateTimePunctuationSymbolSpa... method String (line 11) | func (i LexemeType) String() string { FILE: lexer/lexer.go constant eof (line 15) | eof rune = -1 type Lexer (line 17) | type Lexer struct method Run (line 54) | func (l *Lexer) Run() { method Reset (line 64) | func (l *Lexer) Reset(r io.Reader) { method next (line 73) | func (l *Lexer) next() rune { method nextUntilEOF (line 87) | func (l *Lexer) nextUntilEOF(s string) bool { method backup (line 98) | func (l *Lexer) backup() { method peek (line 104) | func (l *Lexer) peek() rune { method lineCount (line 118) | func (l *Lexer) lineCount() { method accept (line 127) | func (l *Lexer) accept() { method acceptRun (line 131) | func (l *Lexer) acceptRun(valid string) (accepted bool) { method acceptRunFn (line 140) | func (l *Lexer) acceptRunFn(fn func(rune) bool) (accepted int) { method ignore (line 149) | func (l *Lexer) ignore() { method emit (line 154) | func (l *Lexer) emit(t lingo.LexemeType) { function New (line 38) | func New(name string, r io.Reader) *Lexer { FILE: lexer/lexer_test.go type lexerTest (line 10) | type lexerTest struct function testLexer (line 203) | func testLexer(lts *lexerTest) []lingo.Lexeme { function TestLexer (line 214) | func TestLexer(t *testing.T) { FILE: lexer/stateFn.go type stateFn (line 9) | type stateFn function lexText (line 11) | func lexText(l *Lexer) (fn stateFn) { function lexNumber (line 120) | func lexNumber(l *Lexer) (fn stateFn) { function lexWhitespace (line 165) | func lexWhitespace(l *Lexer) (fn stateFn) { function lexPunctuation (line 190) | func lexPunctuation(l *Lexer) (fn stateFn) { function lexSymbol (line 228) | func lexSymbol(l *Lexer) (fn stateFn) { function lexURI (line 235) | func lexURI(l *Lexer) (fn stateFn) { function lexDate (line 252) | func lexDate(l *Lexer) (fn stateFn) { function lexTime (line 268) | func lexTime(l *Lexer) (fn stateFn) { FILE: pos/allinone_test.go function TestEverything (line 13) | func TestEverything(t *testing.T) { FILE: pos/context.go type contextType (line 30) | type contextType constant featuresPerContext (line 32) | featuresPerContext = 8 constant contexts (line 33) | contexts = 5 constant prev2Word (line 36) | prev2Word contextType = iota constant prev2Lemma (line 37) | prev2Lemma constant prev2Cluster (line 38) | prev2Cluster constant prev2Shape (line 39) | prev2Shape constant prev2Prefix1 (line 40) | prev2Prefix1 constant prev2Suffix3 (line 41) | prev2Suffix3 constant prev2POSTag (line 42) | prev2POSTag constant prev2Flags (line 43) | prev2Flags constant prevWord (line 46) | prevWord constant prevLemma (line 47) | prevLemma constant prevCluster (line 48) | prevCluster constant prevShape (line 49) | prevShape constant prevPrefix1 (line 50) | prevPrefix1 constant prevSuffix3 (line 51) | prevSuffix3 constant prevPOSTag (line 52) | prevPOSTag constant prevFlags (line 53) | prevFlags constant ithWord (line 56) | ithWord constant ithLemma (line 57) | ithLemma constant ithCluster (line 58) | ithCluster constant ithShape (line 59) | ithShape constant ithPrefix1 (line 60) | ithPrefix1 constant ithSuffix3 (line 61) | ithSuffix3 constant ithPOSTag (line 62) | ithPOSTag constant ithFlags (line 63) | ithFlags constant nextWord (line 66) | nextWord constant nextLemma (line 67) | nextLemma constant nextCluster (line 68) | nextCluster constant nextShape (line 69) | nextShape constant nextPrefix1 (line 70) | nextPrefix1 constant nextSuffix3 (line 71) | nextSuffix3 constant nextPOSTag (line 72) | nextPOSTag constant nextFlags (line 73) | nextFlags constant next2Word (line 76) | next2Word constant next2Lemma (line 77) | next2Lemma constant next2Cluster (line 78) | next2Cluster constant next2Shape (line 79) | next2Shape constant next2Prefix1 (line 80) | next2Prefix1 constant next2Suffix3 (line 81) | next2Suffix3 constant next2POSTag (line 82) | next2POSTag constant next2Flags (line 83) | next2Flags constant MAXCONTEXTTYPE (line 85) | MAXCONTEXTTYPE type contextMap (line 88) | type contextMap function getContext (line 90) | func getContext(prev2, prev, ith, next, next2 *lingo.Annotation) (retVal... function extractContext (line 120) | func extractContext(a *lingo.Annotation) (retVal [featuresPerContext]str... FILE: pos/context_test.go function TestExtractContext (line 26) | func TestExtractContext(t *testing.T) { FILE: pos/contexttype_string.go constant _contextType_name (line 7) | _contextType_name = "prev2Wordprev2Lemmaprev2Clusterprev2Shapeprev2Prefi... method String (line 11) | func (i contextType) String() string { FILE: pos/debug.go constant BUILD_DEBUG (line 11) | BUILD_DEBUG = "POS TAGGER: Debug Build" function tabcount (line 17) | func tabcount() int { function enterLoggingContext (line 21) | func enterLoggingContext() { function leaveLoggingContext (line 27) | func leaveLoggingContext() { function logf (line 40) | func logf(format string, others ...interface{}) { function recoverFrom (line 44) | func recoverFrom(format string, attrs ...interface{}) { FILE: pos/errors.go type componentUnavailable (line 5) | type componentUnavailable method Error (line 7) | func (c componentUnavailable) Error() string { return fmt.Sprintf(... method Component (line 8) | func (c componentUnavailable) Component() string { return string(c) } FILE: pos/features.go type featureType (line 10) | type featureType constant bias (line 14) | bias featureType = iota constant ithWord_ (line 16) | ithWord_ constant nextWord_ (line 17) | nextWord_ constant next2Word_ (line 18) | next2Word_ constant ithSuffix3_ (line 20) | ithSuffix3_ constant ithPrefix1_ (line 21) | ithPrefix1_ constant prevPOSTag_ (line 23) | prevPOSTag_ constant prev2POSTag_ (line 24) | prev2POSTag_ constant prevSuffix3_ (line 25) | prevSuffix3_ constant nextSuffix3_ (line 26) | nextSuffix3_ constant ithShape_ (line 28) | ithShape_ constant ithCluster_ (line 29) | ithCluster_ constant nextCluster_ (line 30) | nextCluster_ constant next2Cluster_ (line 31) | next2Cluster_ constant prevCluster_ (line 32) | prevCluster_ constant prev2Cluster_ (line 33) | prev2Cluster_ constant ithFlags_ (line 35) | ithFlags_ constant nextFlags_ (line 36) | nextFlags_ constant next2Flags_ (line 37) | next2Flags_ constant prevFlags_ (line 38) | prevFlags_ constant prev2Flags_ (line 39) | prev2Flags_ constant prevLemma_prevPOSTag (line 41) | prevLemma_prevPOSTag constant prevPOSTag_ithWord (line 42) | prevPOSTag_ithWord constant prevPOSTag_prev2POSTag (line 43) | prevPOSTag_prev2POSTag constant prev2Lemma_prev2POSTag (line 44) | prev2Lemma_prev2POSTag constant MAXFEATURETYPE (line 46) | MAXFEATURETYPE type feature (line 76) | type feature interface type singleFeature (line 81) | type singleFeature struct method FeatType (line 86) | func (sf singleFeature) FeatType() featureType { return sf.featureType } method String (line 87) | func (sf singleFeature) String() string { type tupleFeature (line 91) | type tupleFeature struct method FeatType (line 97) | func (tf tupleFeature) FeatType() featureType { return tf.featureType } method String (line 98) | func (tf tupleFeature) String() string { type featureMap (line 102) | type featureMap method String (line 104) | func (fm featureMap) String() string { method add (line 112) | func (fm *featureMap) add(f feature) { (*fm)[f]++ } type sfFeatures (line 114) | type sfFeatures type tfFeatures (line 115) | type tfFeatures function fillFromContext (line 117) | func fillFromContext(c contextMap) (sf sfFeatures, tf tfFeatures) { function getFeatures (line 130) | func getFeatures(s lingo.AnnotatedSentence, i int) (sfFeatures, tfFeatur... FILE: pos/features_test.go function TestGetFeatures (line 12) | func TestGetFeatures(t *testing.T) { FILE: pos/featuretype_string.go constant _featureType_name (line 7) | _featureType_name = "biasithWord_prevLemma_prevPOSTagprev2Lemma_prev2POS... method String (line 11) | func (i featureType) String() string { FILE: pos/models.go type Model (line 13) | type Model struct method Save (line 19) | func (m *Model) Save(filename string) error { method SaveWriter (line 27) | func (m *Model) SaveWriter(f io.WriteCloser) error { function Load (line 47) | func Load(filename string) (*Model, error) { function LoadReader (line 55) | func LoadReader(rd io.ReadCloser) (*Model, error) { method Load (line 76) | func (p *Tagger) Load(filename string) error { FILE: pos/models_test.go function TestSaveLoad (line 12) | func TestSaveLoad(t *testing.T) { FILE: pos/perceptron.go type perceptron (line 5) | type perceptron struct method updateWeightsSF (line 35) | func (p *perceptron) updateWeightsSF(f singleFeature, tag lingo.POSTag... method updateWeightsTF (line 46) | func (p *perceptron) updateWeightsTF(f tupleFeature, tag lingo.POSTag,... method update (line 57) | func (p *perceptron) update(guess, truth lingo.POSTag, sf sfFeatures, ... method predict (line 90) | func (p *perceptron) predict(sf sfFeatures, tf tfFeatures) lingo.POSTag { method average (line 111) | func (p *perceptron) average() { type fctuple (line 18) | type fctuple struct function newPerceptron (line 23) | func newPerceptron() *perceptron { FILE: pos/perceptron_io.go method GobEncode (line 10) | func (sf singleFeature) GobEncode() ([]byte, error) { method GobDecode (line 25) | func (sf *singleFeature) GobDecode(buf []byte) error { method GobEncode (line 41) | func (tf tupleFeature) GobEncode() ([]byte, error) { method GobDecode (line 60) | func (tf *tupleFeature) GobDecode(buf []byte) error { method GobEncode (line 81) | func (fc fctuple) GobEncode() ([]byte, error) { method GobDecode (line 96) | func (fc *fctuple) GobDecode(buf []byte) error { method GobEncode (line 112) | func (p *perceptron) GobEncode() ([]byte, error) { method GobDecode (line 142) | func (p *perceptron) GobDecode(buf []byte) error { function init (line 173) | func init() { FILE: pos/perceptron_io_test.go function TestFeatureSerialization (line 14) | func TestFeatureSerialization(t *testing.T) { function TestPerceptron_Serialize (line 44) | func TestPerceptron_Serialize(t *testing.T) { FILE: pos/postagger.go type Tagger (line 16) | type Tagger struct method Clone (line 98) | func (p *Tagger) Clone() *Tagger { method Run (line 114) | func (p *Tagger) Run() { method Lemmatize (line 138) | func (p *Tagger) Lemmatize(a string, pt lingo.POSTag) ([]string, error) { method Stem (line 146) | func (p *Tagger) Stem(a string) (string, error) { method Clusters (line 154) | func (p *Tagger) Clusters() (map[string]lingo.Cluster, error) { method Progress (line 162) | func (p *Tagger) Progress() <-chan Progress { method Train (line 170) | func (p *Tagger) Train(sentences []treebank.SentenceTag, iterations in... method LoadShortcuts (line 248) | func (p *Tagger) LoadShortcuts(shortcuts map[string]lingo.POSTag) { method fillCache (line 254) | func (p *Tagger) fillCache(sentences []treebank.SentenceTag) { method shortcut (line 296) | func (p *Tagger) shortcut(l lingo.Lexeme) (lingo.POSTag, bool) { method setTag (line 304) | func (p *Tagger) setTag(a *lingo.Annotation, tag lingo.POSTag) { type ConsOpt (line 32) | type ConsOpt function WithCorpus (line 35) | func WithCorpus(c *corpus.Corpus) ConsOpt { function WithLemmatizer (line 44) | func WithLemmatizer(l lingo.Lemmatizer) ConsOpt { function WithStemmer (line 53) | func WithStemmer(s lingo.Stemmer) ConsOpt { function WithCluster (line 62) | func WithCluster(c map[string]lingo.Cluster) ConsOpt { function WithModel (line 70) | func WithModel(m *Model) ConsOpt { function New (line 78) | func New(opts ...ConsOpt) *Tagger { type Progress (line 322) | type Progress struct FILE: pos/release.go constant BUILD_DEBUG (line 5) | BUILD_DEBUG = "POS TAGGER: Release Build" function tabcount (line 10) | func tabcount() int { return 0 } function enterLoggingContext (line 11) | func enterLoggingContext() {} function leaveLoggingContext (line 12) | func leaveLoggingContext() {} function logf (line 13) | func logf(format string, others ...interface{}) {} function recoverFrom (line 14) | func recoverFrom(format string, attrs ...interface{}) {} method ShowWeights (line 16) | func (p *Tagger) ShowWeights() {} function printShortcuts (line 17) | func printShortcuts(p *Tagger) {} FILE: pos/sentence.go method getSentences (line 7) | func (p *Tagger) getSentences() { FILE: pos/test_test.go type dummyLem (line 8) | type dummyLem struct method Lemmatize (line 10) | func (dummyLem) Lemmatize(s string, pt lingo.POSTag) ([]string, error) { type dummyStemmer (line 19) | type dummyStemmer struct method Stem (line 21) | func (dummyStemmer) Stem(s string) (string, error) { type dummyFix (line 31) | type dummyFix struct method Clusters (line 36) | func (dummyFix) Clusters() (map[string]lingo.Cluster, error) { return ... constant conllu (line 38) | conllu = `1 From from ADP IN _ 3 case _ _ FILE: pos/util.go function maxScore (line 9) | func maxScore(scores *[lingo.MAXTAG]float64) lingo.POSTag { FILE: pos/util_test.go function TestMaxScore (line 11) | func TestMaxScore(t *testing.T) { FILE: sentence.go type LexemeSentence (line 13) | type LexemeSentence method String (line 17) | func (ls LexemeSentence) String() string { function NewLexemeSentence (line 15) | func NewLexemeSentence() LexemeSentence { return LexemeSentence(make([]L... type AnnotatedSentence (line 29) | type AnnotatedSentence method Clone (line 33) | func (as AnnotatedSentence) Clone() AnnotatedSentence { method SetID (line 47) | func (as AnnotatedSentence) SetID() { method Fix (line 56) | func (as AnnotatedSentence) Fix() { method IsValid (line 74) | func (as AnnotatedSentence) IsValid() bool { method Phrase (line 96) | func (as AnnotatedSentence) Phrase(start, end int) (AnnotatedSentence,... method IDs (line 107) | func (as AnnotatedSentence) IDs() []int { method Tags (line 116) | func (as AnnotatedSentence) Tags() []POSTag { method Heads (line 125) | func (as AnnotatedSentence) Heads() []int { method Leaves (line 134) | func (as AnnotatedSentence) Leaves() (retVal []int) { method Labels (line 144) | func (as AnnotatedSentence) Labels() []DependencyType { method StringSlice (line 153) | func (as AnnotatedSentence) StringSlice() []string { method LoweredStringSlice (line 162) | func (as AnnotatedSentence) LoweredStringSlice() []string { method Lemmas (line 171) | func (as AnnotatedSentence) Lemmas() []string { method Stems (line 180) | func (as AnnotatedSentence) Stems() []string { method Children (line 188) | func (as AnnotatedSentence) Children(h int) (retVal []int) { method Edges (line 197) | func (as AnnotatedSentence) Edges() (retVal []DependencyEdge) { method Dependency (line 217) | func (as AnnotatedSentence) Dependency() *Dependency { method Tree (line 221) | func (as AnnotatedSentence) Tree() *DependencyTree { method String (line 263) | func (as AnnotatedSentence) String() string { method ValueString (line 274) | func (as AnnotatedSentence) ValueString() string { method LoweredString (line 285) | func (as AnnotatedSentence) LoweredString() string { method LemmaString (line 296) | func (as AnnotatedSentence) LemmaString() string { method StemString (line 307) | func (as AnnotatedSentence) StemString() string { method Len (line 319) | func (as AnnotatedSentence) Len() int { return len(as) } method Swap (line 320) | func (as AnnotatedSentence) Swap(i, j int) { as[i], as[j] = as[j]... method Less (line 321) | func (as AnnotatedSentence) Less(i, j int) bool { return as[i].ID < as... function NewAnnotatedSentence (line 31) | func NewAnnotatedSentence() AnnotatedSentence { return make(AnnotatedSen... FILE: sets.go type TagSet (line 11) | type TagSet method String (line 13) | func (ts TagSet) String() string { type DependencyTypeSet (line 22) | type DependencyTypeSet method String (line 24) | func (dts DependencyTypeSet) String() string { FILE: shape.go type Shape (line 9) | type Shape method Shape (line 11) | func (l Lexeme) Shape() Shape { FILE: stopwords.go constant sw (line 5) | sw = `a about above across after afterwards again against all almost alo... function init (line 9) | func init() { function UnescapeSpecials (line 18) | func UnescapeSpecials(word string) string { FILE: treebank/sentenceTag.go type SentenceTag (line 10) | type SentenceTag struct method AnnotatedSentence (line 17) | func (s SentenceTag) AnnotatedSentence(f lingo.AnnotationFixer) lingo.... method Dependency (line 48) | func (s SentenceTag) Dependency(f lingo.AnnotationFixer) *lingo.Depend... method String (line 55) | func (s SentenceTag) String() string { function ShuffleSentenceTag (line 59) | func ShuffleSentenceTag(s []SentenceTag) []SentenceTag { function WrapLexemeSentence (line 71) | func WrapLexemeSentence(sentence lingo.LexemeSentence) lingo.LexemeSente... function WrapTags (line 79) | func WrapTags(tagList []lingo.POSTag) []lingo.POSTag { function WrapHeads (line 85) | func WrapHeads(heads []int) []int { function WrapDeps (line 91) | func WrapDeps(deps []lingo.DependencyType) []lingo.DependencyType { FILE: treebank/sentenceTag_test.go function TestSentenceTag (line 10) | func TestSentenceTag(t *testing.T) { FILE: treebank/treebank.go type Loader (line 19) | type Loader function LoadUniversal (line 22) | func LoadUniversal(fileName string) []SentenceTag { function ReadConllu (line 34) | func ReadConllu(reader io.Reader) []SentenceTag { function LoadEWT (line 111) | func LoadEWT(filename string) []SentenceTag { FILE: treebank/treebank_test.go constant sampleConllu (line 11) | sampleConllu = `1 President President PROPN NNP Number=Sing 2 compound _ _ function Test_ReadConllu (line 33) | func Test_ReadConllu(t *testing.T) { function ttos (line 119) | func ttos(ts []lingo.POSTag) []string { function ltos (line 127) | func ltos(ls []lingo.DependencyType) []string { FILE: treebank/util.go function StringToLexType (line 8) | func StringToLexType(tag string) lingo.LexemeType { function StringToPOSTag (line 23) | func StringToPOSTag(tag string) (lingo.POSTag, bool) { function StringToDependencyType (line 29) | func StringToDependencyType(ud string) (lingo.DependencyType, bool) { function reset (line 35) | func reset() (lingo.LexemeSentence, []lingo.POSTag, []int, []lingo.Depen... function finish (line 44) | func finish(s lingo.LexemeSentence, st []lingo.POSTag, sh []int, sdt []l... FILE: utils.go function InStringSlice (line 3) | func InStringSlice(s string, l []string) bool { type is (line 12) | type is function StringIs (line 14) | func StringIs(s string, f is) bool { function isAscii (line 23) | func isAscii(r rune) bool { function EqStringSlice (line 30) | func EqStringSlice(a, b []string) bool { FILE: wordFlags.go type WordFlag (line 10) | type WordFlag method String (line 31) | func (f WordFlag) String() string { constant NoFlag (line 13) | NoFlag WordFlag = iota constant IsLetter (line 14) | IsLetter constant IsAscii (line 15) | IsAscii constant IsDigit (line 16) | IsDigit constant IsLower (line 17) | IsLower constant IsPunct (line 18) | IsPunct constant IsSpace (line 19) | IsSpace constant IsTitle (line 20) | IsTitle constant IsUpper (line 21) | IsUpper constant LikeURL (line 22) | LikeURL constant LikeNum (line 23) | LikeNum constant LikeEmail (line 24) | LikeEmail constant IsStopWord (line 25) | IsStopWord constant IsOOV (line 26) | IsOOV constant MAXFLAG (line 28) | MAXFLAG method Flags (line 35) | func (l Lexeme) Flags() WordFlag {