correct.hyph,kRp.corpus-method {tm.plugin.koRpus}R Documentation

Methods to correct kRp.corpus objects

Description

These methods enable you to correct errors that occurred during automatic processing, e.g., wrong hyphenation.

Usage

## S4 method for signature 'kRp.corpus'
correct.hyph(obj, word = NULL, hyphen = NULL, cache = TRUE)

Arguments

obj

An object of class kRp.corpus.

word

A character string, the (possibly incorrectly hyphenated) word entry to be replaced with hyphen.

hyphen

A character string, the new manually hyphenated version of word. Mustn't contain anything other than characters of word plus the hyphenation mark "-".

cache

Logical, if TRUE, the given hyphenation will be added to the sessions' hyphenation cache. Existing entries for the same word will be replaced.

Details

For details on what these methods do on a per text object basis, please refer to the documentation of correct.hyph in the sylly package.

Value

An object of the same class as obj.


[Package tm.plugin.koRpus version 0.4-2 Index]