Package {theeuh}


Title: Write Spaces to Korean Sentences
Version: 0.1.5
Description: Restores spacing in Korean sentences using a bundled neural network model and 'ONNX Runtime' https://onnxruntime.ai/ through 'churon'. Inference runs locally without a web service or automatic downloads.
License: GPL (≥ 3)
Encoding: UTF-8
RoxygenNote: 7.3.3
URL: https://github.com/mrchypark/theeuh, https://mrchypark.github.io/theeuh/
BugReports: https://github.com/mrchypark/theeuh/issues
Depends: R (≥ 4.0.0)
Imports: churon (≥ 0.1.13)
SystemRequirements: ONNX Runtime (>= 1.28.0, optional at runtime)
Suggests: covr, testthat (≥ 3.2.0)
Config/testthat/edition: 3
NeedsCompilation: no
Packaged: 2026-10-02 13:47:27 UTC; cypark
Author: Chanyub Park ORCID iD [aut, cre], Heewon Jeon [aut] (Author of KoSpacing code and bundled model assets)
Maintainer: Chanyub Park <mrchypark@gmail.com>
Repository: CRAN
Date/Publication: 2026-10-14 11:10:02 UTC

theeuh: Write Spaces to Korean Sentences

Description

logo

Restores spacing in Korean sentences using a bundled neural network model and 'ONNX Runtime' https://onnxruntime.ai/ through 'churon'. Inference runs locally without a web service or automatic downloads.

Author(s)

Maintainer: Chanyub Park mrchypark@gmail.com (ORCID)

Authors:

See Also

Useful links:


Write spaces to Korean sentences.

Description

Write spaces to Korean sentences.

Usage

space(ko_sents)

Arguments

ko_sents

A character vector of Korean sentences. Missing values are preserved. Sentences longer than 198 characters are truncated with a warning.

Details

The bundled model is loaded on the first non-empty, non-missing sentence. ONNX Runtime must be configured first; see churon::install_onnx_runtime(). No runtime is downloaded automatically. On supported non-Windows runtimes, telemetry is disabled during model initialization. If another package initializes ONNX Runtime first, set ORT_DISABLE_TELEMETRY=1 before starting R to disable telemetry globally.

Value

Sentences with restored spacing: a character string for one sentence, or an unnamed list of character strings for multiple sentences. An empty character vector returns list().

Examples

if (churon::check_onnx_runtime_available()) {
  space("\uC774\uC81C\uCEE4\uBC0B\uD558\uBA74")
}