SYMBOL INDEX (116 symbols across 5 files) FILE: benchmark_test.go function BenchmarkNL_P (line 8) | func BenchmarkNL_P(b *testing.B) { FILE: nlp.go type NL (line 19) | type NL struct method P (line 33) | func (nl *NL) P(expr string) interface{} { return nl.models[nl.naive.P... method Learn (line 37) | func (nl *NL) Learn() error { method RegisterModel (line 126) | func (nl *NL) RegisterModel(i interface{}, samples []string, ops ...Mo... function New (line 28) | func New() *NL { return &NL{Output: bytes.NewBufferString("")} } type model (line 70) | type model struct method learn (line 171) | func (m *model) learn() error { method selectBestSample (line 210) | func (m *model) selectBestSample(expr []byte) []item { method fit (line 298) | func (m *model) fit(expr string) interface{} { method isLimit (line 334) | func (m *model) isLimit(s []byte, id int) bool { method setSamples (line 344) | func (m *model) setSamples(samples []string) { type item (line 79) | type item struct type field (line 85) | type field struct type ModelOption (line 92) | type ModelOption function WithTimeFormat (line 96) | func WithTimeFormat(format string) ModelOption { function WithTimeLocation (line 110) | func WithTimeLocation(loc *time.Location) ModelOption { function selectBestMapping (line 287) | func selectBestMapping(scores []int) int { FILE: nlp_test.go function failTest (line 12) | func failTest(t *testing.T, err error) { function TestNL_P (line 18) | func TestNL_P(t *testing.T) { function TestNL_RegisterModel (line 123) | func TestNL_RegisterModel(t *testing.T) { function TestNL_Learn (line 192) | func TestNL_Learn(t *testing.T) { function TestWithTimeFormat (line 262) | func TestWithTimeFormat(t *testing.T) { function TestWithTimeLocation (line 293) | func TestWithTimeLocation(t *testing.T) { FILE: parser/parser.go type Token (line 19) | type Token struct function ParseSample (line 25) | func ParseSample(sampleID int, sample []byte) ([]Token, error) { type Option (line 414) | type Option function MaxExpressions (line 421) | func MaxExpressions(maxExprCnt uint64) Option { function Debug (line 433) | func Debug(b bool) Option { function Memoize (line 447) | func Memoize(b bool) Option { function Recover (line 461) | func Recover(b bool) Option { function GlobalStore (line 471) | func GlobalStore(key string, value interface{}) Option { function ParseFile (line 480) | func ParseFile(filename string, opts ...Option) (i interface{}, err erro... function ParseReader (line 495) | func ParseReader(filename string, r io.Reader, opts ...Option) (interfac... function Parse (line 506) | func Parse(filename string, b []byte, opts ...Option) (interface{}, erro... type position (line 511) | type position struct method String (line 515) | func (p position) String() string { type savepoint (line 521) | type savepoint struct type current (line 527) | type current struct method onSample1 (line 318) | func (c *current) onSample1(vs interface{}) (interface{}, error) { method onKeyword2 (line 339) | func (c *current) onKeyword2(v interface{}) (interface{}, error) { method onKeyword10 (line 349) | func (c *current) onKeyword10(v interface{}) (interface{}, error) { method onKeyword18 (line 359) | func (c *current) onKeyword18(v interface{}) (interface{}, error) { method onKeyword28 (line 369) | func (c *current) onKeyword28(v interface{}) (interface{}, error) { method onPunct1 (line 379) | func (c *current) onPunct1() (interface{}, error) { method onIdentifier3 (line 389) | func (c *current) onIdentifier3() (interface{}, error) { type grammar (line 537) | type grammar struct type rule (line 542) | type rule struct type choiceExpr (line 549) | type choiceExpr struct type actionExpr (line 554) | type actionExpr struct type seqExpr (line 560) | type seqExpr struct type labeledExpr (line 565) | type labeledExpr struct type expr (line 571) | type expr struct type andExpr (line 576) | type andExpr type notExpr (line 577) | type notExpr type zeroOrOneExpr (line 578) | type zeroOrOneExpr type zeroOrMoreExpr (line 579) | type zeroOrMoreExpr type oneOrMoreExpr (line 580) | type oneOrMoreExpr type ruleRefExpr (line 582) | type ruleRefExpr struct type andCodeExpr (line 587) | type andCodeExpr struct type notCodeExpr (line 592) | type notCodeExpr struct type litMatcher (line 597) | type litMatcher struct type charClassMatcher (line 603) | type charClassMatcher struct type anyMatcher (line 614) | type anyMatcher type errList (line 617) | type errList method add (line 619) | func (e *errList) add(err error) { method err (line 623) | func (e errList) err() error { method dedupe (line 631) | func (e *errList) dedupe() { method Error (line 643) | func (e errList) Error() string { type parserError (line 664) | type parserError struct method Error (line 672) | func (p *parserError) Error() string { function newParser (line 677) | func newParser(filename string, b []byte, opts ...Option) *parser { type resultTuple (line 706) | type resultTuple struct type parser (line 712) | type parser struct method callonSample1 (line 333) | func (p *parser) callonSample1() (interface{}, error) { method callonKeyword2 (line 343) | func (p *parser) callonKeyword2() (interface{}, error) { method callonKeyword10 (line 353) | func (p *parser) callonKeyword10() (interface{}, error) { method callonKeyword18 (line 363) | func (p *parser) callonKeyword18() (interface{}, error) { method callonKeyword28 (line 373) | func (p *parser) callonKeyword28() (interface{}, error) { method callonPunct1 (line 383) | func (p *parser) callonPunct1() (interface{}, error) { method callonIdentifier3 (line 393) | func (p *parser) callonIdentifier3() (interface{}, error) { method setOptions (line 700) | func (p *parser) setOptions(opts []Option) { method pushV (line 750) | func (p *parser) pushV() { method popV (line 771) | func (p *parser) popV() { method print (line 781) | func (p *parser) print(prefix, s string) string { method in (line 791) | func (p *parser) in(s string) string { method out (line 796) | func (p *parser) out(s string) string { method addErr (line 801) | func (p *parser) addErr(err error) { method addErrAt (line 805) | func (p *parser) addErrAt(err error, pos position, expected []string) { method failAt (line 829) | func (p *parser) failAt(fail bool, pos position, want string) { method read (line 849) | func (p *parser) read() { method restore (line 868) | func (p *parser) restore(pt savepoint) { method sliceFrom (line 879) | func (p *parser) sliceFrom(start savepoint) []byte { method getMemoized (line 883) | func (p *parser) getMemoized(node interface{}) (resultTuple, bool) { method setMemoized (line 895) | func (p *parser) setMemoized(pt savepoint, node interface{}, tuple res... method buildRulesTable (line 907) | func (p *parser) buildRulesTable(g *grammar) { method parse (line 914) | func (p *parser) parse(g *grammar) (val interface{}, err error) { method parseRule (line 986) | func (p *parser) parseRule(rule *rule) (interface{}, bool) { method parseExpr (line 1015) | func (p *parser) parseExpr(expr interface{}) (interface{}, bool) { method parseActionExpr (line 1074) | func (p *parser) parseActionExpr(act *actionExpr) (interface{}, bool) { method parseAndCodeExpr (line 1096) | func (p *parser) parseAndCodeExpr(and *andCodeExpr) (interface{}, bool) { method parseAndExpr (line 1108) | func (p *parser) parseAndExpr(and *andExpr) (interface{}, bool) { method parseAnyMatcher (line 1121) | func (p *parser) parseAnyMatcher(any *anyMatcher) (interface{}, bool) { method parseCharClassMatcher (line 1136) | func (p *parser) parseCharClassMatcher(chr *charClassMatcher) (interfa... method parseChoiceExpr (line 1202) | func (p *parser) parseChoiceExpr(ch *choiceExpr) (interface{}, bool) { method parseLabeledExpr (line 1218) | func (p *parser) parseLabeledExpr(lab *labeledExpr) (interface{}, bool) { method parseLitMatcher (line 1233) | func (p *parser) parseLitMatcher(lit *litMatcher) (interface{}, bool) { method parseNotCodeExpr (line 1260) | func (p *parser) parseNotCodeExpr(not *notCodeExpr) (interface{}, bool) { method parseNotExpr (line 1272) | func (p *parser) parseNotExpr(not *notExpr) (interface{}, bool) { method parseOneOrMoreExpr (line 1287) | func (p *parser) parseOneOrMoreExpr(expr *oneOrMoreExpr) (interface{},... method parseRuleRefExpr (line 1309) | func (p *parser) parseRuleRefExpr(ref *ruleRefExpr) (interface{}, bool) { method parseSeqExpr (line 1326) | func (p *parser) parseSeqExpr(seq *seqExpr) (interface{}, bool) { method parseZeroOrMoreExpr (line 1345) | func (p *parser) parseZeroOrMoreExpr(expr *zeroOrMoreExpr) (interface{... method parseZeroOrOneExpr (line 1363) | func (p *parser) parseZeroOrOneExpr(expr *zeroOrOneExpr) (interface{},... function listJoin (line 975) | func listJoin(list []string, sep string, lastSep string) string { FILE: parser/parser_test.go function TestParseSample (line 8) | func TestParseSample(t *testing.T) {