Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartWebServer ¶
StartWebServer starts the HTTP service and listens for the requests
Types ¶
type ResultWord ¶
type ResultWord struct { Type string `json:"type"` String string `json:"string,omitempty"` Mi string `json:"mi,omitempty"` Lemma string `json:"lemma,omitempty"` }
ResultWord is service output
func MapRes ¶
func MapRes(text string, tgr *api.TaggerResult, sgm *api.SegmenterResult) ([]ResultWord, error)
MapRes map function
type Segmenter ¶
type Segmenter interface {
Process(text string) (*api.SegmenterResult, error)
}
Segmenter segments text
type Tagger ¶
type Tagger interface {
Process(string, *api.SegmenterResult) (*api.TaggerResult, error)
}
Tagger returns word forms
Click to show internal directories.
Click to hide internal directories.