Learn R Programming

koRpus (version 0.10-2)

taggedText: Getter/setter methods for koRpus objects

Description

These methods should be used to get or set values of tagged text objects generated by koRpus functions like treetag() or tokenize().

Usage

taggedText(obj)

# S4 method for kRp.taggedText taggedText(obj)

taggedText(obj) <- value

# S4 method for kRp.taggedText taggedText(obj) <- value

describe(obj)

# S4 method for kRp.taggedText describe(obj)

describe(obj) <- value

# S4 method for kRp.taggedText describe(obj) <- value

# S4 method for kRp.hyphen describe(obj)

# S4 method for kRp.hyphen describe(obj) <- value

language(obj)

# S4 method for kRp.taggedText language(obj)

language(obj) <- value

# S4 method for kRp.taggedText language(obj) <- value

# S4 method for kRp.hyphen language(obj)

# S4 method for kRp.hyphen language(obj) <- value

is.taggedText(obj)

hyphenText(obj)

# S4 method for kRp.hyphen hyphenText(obj)

hyphenText(obj) <- value

# S4 method for kRp.hyphen hyphenText(obj) <- value

Arguments

obj

An arbitrary R object.

value

The new value to replace the current with.

Details

  • taggedText() returns the TT.res slot.

  • describe() returns the desc slot.

  • language() returns the lang slot.

  • hyphenText() returns the hyphen slot from objects of class kRp.hyphen.

Examples

Run this code
# NOT RUN {
taggedText(tagged.txt)
# }

Run the code above in your browser using DataLab