Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AnnotatorType ¶ added in v1.0.1
type AnnotatorType int
const ( AnnotatorTokenize AnnotatorType = 1 << iota AnnotatorCleanxml AnnotatorSsplit AnnotatorDocdate AnnotatorPos AnnotatorLemma AnnotatorNer AnnotatorRegexner AnnotatorSentiment AnnotatorParse AnnotatorDepparse AnnotatorDcoref AnnotatorRelation AnnotatorNatlog AnnotatorEntitylink AnnotatorKbp AnnotatorQuote )
func (AnnotatorType) MarshalJSON ¶ added in v1.0.1
func (a AnnotatorType) MarshalJSON() ([]byte, error)
func (AnnotatorType) String ¶ added in v1.0.1
func (a AnnotatorType) String() string
type DependencyNode ¶
type Document ¶
type Document struct {
Sentences []*Sentence `json:"sentences"`
}
func UnmarshalDocument ¶ added in v1.0.1
type Sentence ¶
type Sentence struct { Index int `json:"index"` Tokens []*Token `json:"tokens"` Parse string `json:"parse,omitempty"` BasicDependencies []*DependencyNode `json:"basicDependencies,omitempty"` EnhancedDependencies []*DependencyNode `json:"enhancedDependencies,omitempty"` EnhancedPlusPlusDependencies []*DependencyNode `json:"enhancedPlusPlusDependencies,omitempty"` }
func UnmarshalSentence ¶ added in v1.0.1
type Token ¶
type Token struct { Index int `json:"index"` Word string `json:"word"` OriginalText string `json:"originalText,omitempty"` Lemma string `json:"lemma,omitempty"` CharacterOffsetBegin int `json:"characterOffsetBegin,omitempty"` CharacterOffsetEnd int `json:"characterOffsetEnd,omitempty"` Pos string `json:"pos,omitempty"` Before string `json:"before,omitempty"` After string `json:"after,omitempty"` }
Click to show internal directories.
Click to hide internal directories.