Crate bareun_rs

Crate bareun_rs 

Source
Expand description

=====
Provides

  1. a Korean Part-Of-Speech Tagger as bareun client
  2. Multiple custom dictionaries which is kept in the your bareun server.
  3. Korean spelling corrector

§How to use the documentation

Full documentation for bareun is available in installable tarball or docker images.

  • see docs/intro.html at installable tarball.
  • or http://localhost:5757/intro.html after running docker.

The docstring examples assume that bareun_rs::bareun has been imported as brn.

use bareun_rs::bareun as brn;

§Classes

Tagger
the bareun POS tagger for Korean
use bareun_rs::bareun::Tagger;
Tagged
Wrapper for tagged output
use bareun_rs::bareun::Tagged;
Tokenizer
the bareun tokenizer for Korean
use bareun_rs::bareun::Tokenizer;
Tokenized
Wrapper for tokenized output
use bareun_rs::bareun::Tokenized;
Corrector
Korean spelling corrector
use bareun_rs::bareun::Corrector;
CustomDict
Custom dictionary for Korean.
use bareun_rs::bareun::CustomDict;

§Get bareun

Modules§

bareun

Structs§

BareunLanguageServiceClient
BareunRevisionServiceClient
Corrector
CustomDict
사용자 사전을 쉽게 사용하도록 해주는 래퍼(wrapper).
CustomDictionaryServiceClient
커스텀 사전을 생성, 조회, 업데이트, 삭제하는 클라이언트 The custom dictionary client which can create, update, list, delete your own one.
Tagged
Tagger
Tokenized
Tokenizer
Wrapper for bareun v1.7.x https://github.com/bareun-nlp

Enums§

BareunError
SegResult

Functions§

build_dict_set
주어진 파라미터를 사용하여 사용자 사전의 한 표현 형태인 DictSet protobuf 메시지를 만듭니다. Args: domain (str): 사용자 사전의 이름 name (str): 사용자 사전에 대한 설명 dict_set (set): 사용자 사전에 들어가야 할 단어들의 잡합
pb_map_to_set
DictSet을 사전으로 변환합니다. Args: ds (&DictSet): DictSet 객체
read_dic_file
사용자 사전의 파일을 읽어들입니다. Args: user_dict_path (str): 사용자 사전 파일 이름

Type Aliases§

Result