R/cpp11.R

Defines functions kiwi_split_into_sents_ kiwi_analyze_ kiwi_get_option_ kiwi_set_option_ kiwi_init_ kiwi_builder_build_ kiwi_builder_extract_add_words_ kiwi_builder_extract_words_ kiwi_close_ kiwi_builder_load_dict_ kiwi_builder_add_rule_ kiwi_builder_add_pre_analyzed_word_ kiwi_builder_add_alias_word_ kiwi_builder_add_word_ kiwi_builder_init_ kiwi_builder_close_ kiwi_clear_error_ kiwi_error_ kiwi_version_

# Generated by cpp11: do not edit by hand

kiwi_version_ <- function() {
  .Call(`_elbird_kiwi_version_`)
}

kiwi_error_ <- function() {
  .Call(`_elbird_kiwi_error_`)
}

kiwi_clear_error_ <- function() {
  invisible(.Call(`_elbird_kiwi_clear_error_`))
}

kiwi_builder_close_ <- function(handle_ex) {
  .Call(`_elbird_kiwi_builder_close_`, handle_ex)
}

kiwi_builder_init_ <- function(model_path, num_threads, options) {
  .Call(`_elbird_kiwi_builder_init_`, model_path, num_threads, options)
}

kiwi_builder_add_word_ <- function(handle_ex, word, pos, score) {
  .Call(`_elbird_kiwi_builder_add_word_`, handle_ex, word, pos, score)
}

kiwi_builder_add_alias_word_ <- function(handle_ex, alias, pos, score, orig_word) {
  .Call(`_elbird_kiwi_builder_add_alias_word_`, handle_ex, alias, pos, score, orig_word)
}

kiwi_builder_add_pre_analyzed_word_ <- function(handle_ex, form, analyzed_r, score) {
  .Call(`_elbird_kiwi_builder_add_pre_analyzed_word_`, handle_ex, form, analyzed_r, score)
}

kiwi_builder_add_rule_ <- function(handle_ex, pos, pattern, replacement, score) {
  .Call(`_elbird_kiwi_builder_add_rule_`, handle_ex, pos, pattern, replacement, score)
}

kiwi_builder_load_dict_ <- function(handle_ex, dict_path) {
  .Call(`_elbird_kiwi_builder_load_dict_`, handle_ex, dict_path)
}

kiwi_close_ <- function(handle_ex) {
  .Call(`_elbird_kiwi_close_`, handle_ex)
}

kiwi_builder_extract_words_ <- function(handle_ex, input, min_cnt, max_word_len, min_score, pos_threshold) {
  .Call(`_elbird_kiwi_builder_extract_words_`, handle_ex, input, min_cnt, max_word_len, min_score, pos_threshold)
}

kiwi_builder_extract_add_words_ <- function(handle_ex, input, min_cnt, max_word_len, min_score, pos_threshold) {
  .Call(`_elbird_kiwi_builder_extract_add_words_`, handle_ex, input, min_cnt, max_word_len, min_score, pos_threshold)
}

kiwi_builder_build_ <- function(handle_ex) {
  .Call(`_elbird_kiwi_builder_build_`, handle_ex)
}

kiwi_init_ <- function(model_path, num_threads, options) {
  .Call(`_elbird_kiwi_init_`, model_path, num_threads, options)
}

kiwi_set_option_ <- function(handle_ex, option, value) {
  invisible(.Call(`_elbird_kiwi_set_option_`, handle_ex, option, value))
}

kiwi_get_option_ <- function(handle_ex, option) {
  .Call(`_elbird_kiwi_get_option_`, handle_ex, option)
}

kiwi_analyze_ <- function(handle_ex, text, top_n, match_options, stopwords_r) {
  .Call(`_elbird_kiwi_analyze_`, handle_ex, text, top_n, match_options, stopwords_r)
}

kiwi_split_into_sents_ <- function(handle_ex, text, match_options, return_tokens) {
  .Call(`_elbird_kiwi_split_into_sents_`, handle_ex, text, match_options, return_tokens)
}

Try the elbird package in your browser

Any scripts or data that you put into this service are public.

elbird documentation built on Aug. 12, 2022, 5:08 p.m.