show_text: Show text or sentence with given id

View source: R/texts.R

show_textR Documentation

Show text or sentence with given id

Description

It shows the text or sentence with the given id.

Usage

show_text(lexadb, text_id, sent_id = NULL)

Arguments

lexadb

A lexadb object (created with load_lexadb).

text_id

A string with the text id (the tx_ prefix and leading zeros can be omitted.)

sent_id

A string with the sentence id (the st_ prefix and leading zeros can be omitted.)

Value

A lexast object.

Examples

db_path <- system.file("extdata/albanian_lexadb", package = "lexa")
albanian <- load_lexadb(db_path)

show_text(albanian, 1)
show_text(albanian, 1, 3)

stefanocoretta/lexa documentation built on Feb. 4, 2024, 6:49 p.m.