scan

package
v1.0.17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	STATEMENT_WORD_LIMIT int = 50

	TP_C1 int = 40
	TP_C2 int = 20
	TP_C3 int = 10
)
View Source
const (
	MAX_WORDS int = 5
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Request

type Request struct {
	Text    string `json:"text"`
	URL     string `json:"url"`
	Records bool   `json:"records"`
}

type Result

type Result struct {
	Tags     []string `json:"tags"`
	Sign     int      `json:"sign"`
	Slang    bool     `json:"slang"`
	Feedback bool     `json:"feedback"`
	Personal bool     `json:"personal"`
	Words    struct {
		Total int64 `json:"total"`
		Skip  int64 `json:"skip"`
	} `json:"words"`
	Records [][]interface{} `json:"records"`
	Many    bool            `json:"many"`
	Adult   bool            `json:"adult"`
	Periods []string        `json:"preriods"`
}

func TextProc

func TextProc(req *Request) *Result

func UrlProc

func UrlProc(req *Request) *Result

type Statement

type Statement struct {
	// contains filtered or unexported fields
}

Statement agg data structure

func NewStatement

func NewStatement() *Statement

func (*Statement) Add

func (s *Statement) Add(wrd string)

func (*Statement) AddTags

func (s *Statement) AddTags(lst []string)

func (*Statement) End

func (s *Statement) End()

func (*Statement) IsFeedback

func (s *Statement) IsFeedback() bool

func (*Statement) IsPersonal

func (s *Statement) IsPersonal() bool

func (*Statement) Sign

func (s *Statement) Sign() int

func (*Statement) Tags

func (s *Statement) Tags() []string

persent positive minus negative div maximum

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL