make_corpus: make_corpus

View source: R/steps.R

make_corpusR Documentation

make_corpus

Description

Make corpus based on biotext class

Usage

make_corpus(
  ret,
  collapse = FALSE,
  num_only = TRUE,
  stem = FALSE,
  preserve = TRUE,
  ngram = 1
)

Arguments

ret

biotext class object

collapse

collapse all the sentences to one sentence

num_only

delete number only (not deleting XXX123)

stem

stem the words or not (default to FALSE)

preserve

preserve the original cases

ngram

n-gram

Details

Make corpus based on biotext class using tm. Ngram, stemming parameters can be specified by this function.

Value

biotext class object

Examples

obtain_refseq("PNKP") |> make_corpus()

noriakis/wcGeneSummary documentation built on April 22, 2024, 7:12 a.m.