library

package
v0.0.80 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL