Documentation
¶
Index ¶
Constants ¶
View Source
const ( // NullMode ... NullMode mode = iota // HTMLMode ... HTMLMode // TextMode ... TextMode // SkipMode ... SkipMode // PuncMode ... PuncMode )
Variables ¶
View Source
var HTMLTagSet = map[string]bool{}/* 145 elements not displayed */
HTMLTagSet ...
Functions ¶
This section is empty.
Types ¶
type CompressedToken ¶
CompressedToken ...
type Document ¶
type Document struct {
Tokens []*Token `json:"tokens"`
Paragraphs []*Paragraph `json:"paragraphs"`
Titles []*Title `json:"title"`
Raw string `json:"raw"`
Checksum string `json:"checksum"`
}
Document ...
type Part ¶
type Part struct {
ByteStart int `json:"byte_start"`
ByteEnd int `json:"byte_end"`
TokenStart int `json:"token_start"`
TokenEnd int `json:"token_end"`
}
Part ...
type Token ¶
type Token struct {
Start int `json:"start"`
End int `json:"end"`
Content string `json:"content"`
Idx int `json:"index"`
Type TokenType `json:"type"`
}
Token ...
type Tokenizer ¶
type Tokenizer struct {
// contains filtered or unexported fields
}
Tokenizer ...
func (*Tokenizer) TokenReader ¶
TokenReader ...
Click to show internal directories.
Click to hide internal directories.