Learn R Programming

stortingscrape (version 0.4.1)

read_obt: Read Oslo-Bergen-Tagger processed files into R

Description

A function reading OBT-tagged files

Usage

read_obt(file = NA)

Value

A data frame with the following variables:

sentenceSentence number
indexToken number in sentence
tokenRaw token, as read by OBT originally
lwrLowercase raw token
lemmaLemmatized token
posPart of Speech
morphMorphological tags

Arguments

file

character. Path to OBT-tagged file

Examples

Run this code

if (FALSE) {
sample_text <- read_obt("./inst/extdata/obt_sample.txt")
head(sample_text)
}

Run the code above in your browser using DataLab