DocSet {ssrch}R Documentation

constructor for DocSet

Description

constructor for DocSet

Usage

DocSet(kw2docs, docs2recs, docs2kw, titles, urls, doc_retriever)

Arguments

kw2docs

an environment mapping keywords to documents

docs2recs

an environment mapping document identifiers to records

docs2kw

an environment mapping documents to keywords

titles

a named character vector with titles; names are document identifiers

urls

a named character vector with document-associated URLs; names are document identifiers

doc_retriever

a function that, given a document identifier, will produce the document

Value

instance of DocSet

Note

Titles must be bound in post-hoc. parseDoc produces data including parsed titles but does not bind the title into the resulting object.

Examples

getClass("DocSet")

[Package ssrch version 1.0.0 Index]