Returns the file path to a corpus, if it exists.
For bundled corpora, returns NA.
Arguments
- corpus
Character string: name of the corpus.
Value
Character string: path to corpus file, or NULL if not downloaded
(or NA for bundled corpora).
Examples
corpus_path("corpus_beyonce")
#> ℹ Corpus corpus_beyonce is bundled with the package.