Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PersistentSummarizer ¶
type PersistentSummarizer struct {
// contains filtered or unexported fields
}
PersistentSummarizer wraps a K/V db and stores/retrieves summarized text snippets
func NewPersistentSummarizer ¶
func NewPersistentSummarizer(dbpath string, sentenceCount int) (*PersistentSummarizer, error)
NewPersistentSummarizer creates a persistent summarizer
func (*PersistentSummarizer) Fetch ¶
func (psz *PersistentSummarizer) Fetch(key string) (string, error)
Fetch a summary based on key, returns error if the key doesn't exist
func (*PersistentSummarizer) SummarizeAndStore ¶
func (psz *PersistentSummarizer) SummarizeAndStore(key string, value string) (string, error)
SummarizeAndStore uses a key to point to a summary on disk
Click to show internal directories.
Click to hide internal directories.