Documentation
¶
Index ¶
- func DBC2SBC(s string) string
- func If(condition bool, trueVal, falseVal interface{}) interface{}
- func Max(first int, args ...int) int
- func Min(first int, args ...int) int
- func SBC2DBC(s string) string
- type ArrayDoc2VecStringProvider
- type ArrayStringProvider
- type EndpointData
- type IDoc2VecWord
- type IEndpointData
- type IModelDataProvider
- type IResettableReader
- type IStringProvider
- type ModelFileDataProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ArrayDoc2VecStringProvider ¶
type ArrayDoc2VecStringProvider struct {
Data []IDoc2VecWord
Cur int
}
func NewDoc2VecArrayStringProvider ¶
func NewDoc2VecArrayStringProvider(data []IDoc2VecWord) *ArrayDoc2VecStringProvider
func (*ArrayDoc2VecStringProvider) More ¶
func (a *ArrayDoc2VecStringProvider) More() bool
func (*ArrayDoc2VecStringProvider) Next ¶
func (a *ArrayDoc2VecStringProvider) Next() string
type ArrayStringProvider ¶
func NewArrayStringProvider ¶
func NewArrayStringProvider(data []string) *ArrayStringProvider
func (*ArrayStringProvider) More ¶
func (a *ArrayStringProvider) More() bool
func (*ArrayStringProvider) Next ¶
func (a *ArrayStringProvider) Next() string
type EndpointData ¶
type EndpointData struct {
TheName string
//TheWords *ArrayStringProvider
TheWords IStringProvider
}
func (*EndpointData) Name ¶
func (e *EndpointData) Name() string
func (*EndpointData) Words ¶
func (e *EndpointData) Words() IStringProvider
type IDoc2VecWord ¶
type IDoc2VecWord interface {
Make() string
}
IDoc2VecWord is the interface used to construct a word for the Doc2Vec algorithm. Anything meeting this interface can supply data to Doc2Vec
type IEndpointData ¶
type IEndpointData interface {
Name() string
Words() IStringProvider
}
type IModelDataProvider ¶
type IModelDataProvider interface {
More() bool
Next() IEndpointData
Reset()
}
type IStringProvider ¶
type ModelFileDataProvider ¶
type ModelFileDataProvider struct {
// contains filtered or unexported fields
}
func NewModelFileDataProvider ¶
func NewModelFileDataProvider(reader IResettableReader) *ModelFileDataProvider
func NewModelFileDataProvider(reader io.Reader) *ModelFileDataProvider {
func (*ModelFileDataProvider) More ¶
func (m *ModelFileDataProvider) More() bool
func (*ModelFileDataProvider) Next ¶
func (m *ModelFileDataProvider) Next() IEndpointData
func (*ModelFileDataProvider) Reset ¶
func (m *ModelFileDataProvider) Reset()
Click to show internal directories.
Click to hide internal directories.