read_serialized_mmcorpus.Rd
Read Serialized Matrix Market from path or as_serialized_mmcorpus
.
read_serialized_mmcorpus(file) # S3 method for mm_file read_serialized_mmcorpus(file) # S3 method for character read_serialized_mmcorpus(file)
file | path or return value of |
---|
#> → Preprocessing 9 documents #> ← 9 documents after perprocessingdict <- corpora_dictionary(docs) corpora <- doc2bow(dict, docs) # file to hold matrix market fl <- "corpus.mm" # serialize# NOT RUN { corpus_mm <- serialize_mmcorpus(corpora, file = fl) # }# read and delete# NOT RUN { (mm <- read_serialized_mmcorpus(corpus_mm)) # }# NOT RUN { delete_mmcorpus(corpus_mm) # }