Documentation
¶
Index ¶
- Constants
- func CharacterFrequencies(root *Chunk, minAppearance int, minNonFirst int) map[string]int
- func DigestChunks(c chan *Chunk, out chan *Chunk)
- func IdentifyCharacters(root *Chunk, minAppearance int, minNonFirst int) []string
- func PrintLines(ss []string)
- func PrintNameFrequency(nf map[string]int)
- func SortAndPrintLines(ss []string)
- func UnitToString(unit int) string
- type Chunk
- func (c *Chunk) GetChapter(chapter int) string
- func (c *Chunk) GetChapterHTML(chapter int) string
- func (c *Chunk) GetFirstSentence() string
- func (c *Chunk) GetNthSentence(n int) string
- func (c *Chunk) GetSpecificWordCount(w string) int
- func (c *Chunk) GetWordCount() int
- func (c *Chunk) HTML() string
- func (c *Chunk) PrintChapter(chapter int)
- func (c *Chunk) PrintStructure(includeSentences bool, maxDepth int) string
- func (c *Chunk) PrintTopXCharactersPerChapter(includeSentences bool, includeXthSentence int, topX int, tabDelimit bool, ...)
- func (c *Chunk) String() string
- type ChunkIterator
- type Chunker
- type Pair
- type PairList
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func CharacterFrequencies ¶
func DigestChunks ¶
func IdentifyCharacters ¶
func PrintLines ¶
func PrintLines(ss []string)
func PrintNameFrequency ¶
func SortAndPrintLines ¶
func SortAndPrintLines(ss []string)
func UnitToString ¶
Types ¶
type Chunk ¶
func (*Chunk) GetChapter ¶
func (*Chunk) GetChapterHTML ¶
func (*Chunk) GetFirstSentence ¶
func (*Chunk) GetNthSentence ¶
func (*Chunk) GetSpecificWordCount ¶
func (*Chunk) GetWordCount ¶
func (*Chunk) PrintChapter ¶
func (*Chunk) PrintStructure ¶
func (*Chunk) PrintTopXCharactersPerChapter ¶
type ChunkIterator ¶
type ChunkIterator struct { FirstWordInSentence bool FirstSentenceInSection bool // contains filtered or unexported fields }
func NewChunkIterator ¶
func NewChunkIterator(root *Chunk) *ChunkIterator
func (*ChunkIterator) GetDepth ¶
func (c *ChunkIterator) GetDepth() int
func (*ChunkIterator) NextChunk ¶
func (c *ChunkIterator) NextChunk() *Chunk
func (*ChunkIterator) NextWord ¶
func (c *ChunkIterator) NextWord() *Chunk
func (*ChunkIterator) Value ¶
func (c *ChunkIterator) Value() *Chunk
Click to show internal directories.
Click to hide internal directories.