import("tm")
import("DSL")
import("slam")

importFrom("NLP", "meta")
importFrom("utils", "getS3method")

## Constructor (second constructor for compatibility reasons)
export("DCorpus", "DistributedCorpus")

## Revisions
export("getRevisions")
export("keepRevisions")
export("keepRevisions<-")
export("removeRevision")
export("setRevision")

## Generic functions
export("as.DCorpus", "as.DistributedCorpus")

## Methods on DistributedCorpus
S3method("[", "DCorpus")
S3method("[[", "DCorpus")
S3method("[[<-", "DCorpus")
S3method("as.list", "DCorpus")
S3method("format", "DCorpus")
S3method("length", "DCorpus")
S3method("meta", "DCorpus")
S3method("print", "DCorpus")
S3method("summary", "DCorpus")
S3method("TermDocumentMatrix", "DCorpus")
S3method("tm_map", "DCorpus")

## Methods on Corpus
S3method("as.DCorpus", "VCorpus")
S3method("as.DCorpus", "DCorpus")
S3method("as.VCorpus", "DCorpus")
