Skip to content

Instantly share code, notes, and snippets.

@PolMine
Created November 29, 2018 15:09
Show Gist options
  • Save PolMine/9b3251b5c67ad2c2bc650598d1bcd96d to your computer and use it in GitHub Desktop.
Save PolMine/9b3251b5c67ad2c2bc650598d1bcd96d to your computer and use it in GitHub Desktop.
# install current version of cwbtools
library(drat)
drat::addRepo("polmine")
install.packages("cwbtools")
# Reencode installed corpus
library(polmineR)
use("MigParl")
library(cwbtools)
cwbtools::corpus_recode(corpus = "MIGPARL",
registry_dir = system.file(package = "MigParl", "extdata", "cwb", "registry"),
data_dir = system.file(package = "MigParl", "extdata", "cwb", "indexed_corpora", "migparl"),
to = "latin1")
RStudio Session neu starten.
# Check new encoding
library(polmineR)
use("MigParl")
polmineR::getEncoding("MIGPARL")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment