package
Version:
v0.0.0-...-90229f9
Opens a new window with list of versions in this module.
Published: Jul 28, 2019
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Document struct {
Hash string `json:"hash"`
Content string `json:"content"`
Segments []*Segment `json:"segments,omitempty"`
}
Document starts with Content which is then analyzed
New takes the input string for segmenting and
runs all segments through the steps before returning the final document
type Keyword struct {
Key string `json:"key"`
Value float64 `json:"value"`
}
Keyword as found inside a Segment
type Segment struct {
Text string `json:"text"`
Keywords []*Keyword `json:"keywords,omitempty"`
}
Segment of a Document
Step taking a segment and returning updated segment or error
Source Files
¶
Click to show internal directories.
Click to hide internal directories.