Documentation ¶
Overview ¶
The library package allows for analysis of multiple corpora together.
Index ¶
Constants ¶
View Source
const LibraryFile = "data/corpus/library.csv"
The library file listing the corpora
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Corpus ¶
type Corpus struct {
Title, Summary, DateUpdated string
Collections []corpus.CollectionEntry
}
type CorpusData ¶
type CorpusData struct {
Title, ShortName, Status, FileName string
}
type Library ¶
type Library struct {
Title, Summary, DateUpdated, TargetStatus string
Loader LibraryLoader
}
A Library is a set of corpora loaded using a LibraryLoader and metadata
type LibraryData ¶
type LibraryData struct {
Title, Summary, DateUpdated, TargetStatus string
Corpora []CorpusData
}
A LibraryData is a struct to output library metadata to a HTML file
type LibraryLoader ¶
type LibraryLoader interface { // GetCorpusLoader gets the corpus loader GetCorpusLoader() corpus.CorpusLoader // LoadLibrary loads the corpora in the library LoadLibrary(r io.Reader) (*[]CorpusData, error) }
LibraryLoader loads the corpora into the library
func NewLibraryLoader ¶
func NewLibraryLoader(fname string, config corpus.CorpusConfig) LibraryLoader
NewLibraryLoader creates a new LibraryLoader
Click to show internal directories.
Click to hide internal directories.