Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewNLP, CreateInitServerFn)
Functions ¶
func CreateInitServerFn ¶
func CreateInitServerFn(ps *NLP) rpc.InitServer
Types ¶
type NLP ¶
type NLP struct {
// contains filtered or unexported fields
}
func (*NLP) Classifier ¶
func (*NLP) Pinyin ¶
func (s *NLP) Pinyin(_ context.Context, req *pb.TextRequest) (*pb.WordsReply, error)
func (*NLP) Segmentation ¶
func (s *NLP) Segmentation(_ context.Context, req *pb.TextRequest) (*pb.WordsReply, error)
Click to show internal directories.
Click to hide internal directories.