Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Document ¶
type Document struct { // The ID of the document. DocID int `json:"doc_id"` // URI of the document. URI string `json:"uri"` // Content of the document. Content string `json:"content"` }
Document represents a document in a corpus. A document is a collection of tokens.
type FileImporter ¶
type FileImporter struct { }
This is a file importer It will implement the Importer interface It will import a corpus from a directory of files
type FileImporterParams ¶
type FileImporterParams struct { // Path of the corpus. Path string `json:"path"` // Filter of the corpus. Filter string `json:"filter"` }
File Importer params.
type Import ¶
type Import struct { // The name of the corpus. Name string `json:"name"` // Description of the corpus. Description string `json:"description"` // Source of the corpus. Source string `json:"source"` // URI of the corpus. URI string `json:"uri"` // The documents in the corpus. Documents []*Document `json:"documents"` }
Import represents a corpus of documents. A corpus is a collection of documents.
Click to show internal directories.
Click to hide internal directories.