khaiii-api

command module
v1.3.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2025 License: BSD-2-Clause Imports: 10 Imported by: 0

README

khaiii-api: khaiii API server

khaiii_logo

Build

Update docs:

go install github.com/swaggo/swag/cmd/swag@latest
swag init

Build container image:

make build_image IMAGE_TAG=khaiii-api:latest

Run the API server locally:

docker run -it --rm -p 8082:8080 khaiii-api:latest

Client example:

cd examples/api_client
go run main.go

Example output:

orig_text: 사랑은 모든것을 덮어주고 모든것을 믿으며 모든것을 바라고 모든것을 견디어냅니다
word_chunks:
- word: 사랑은
  begin: 0
  len: 9
  morphs:
  - lex: 사랑
    tag: NNG
  - lex: 은
    tag: JX
- word: 모든것을
  begin: 10
  len: 12
  morphs:
  - lex: 모든
    tag: MM
  - lex: 것
    tag: NNB
  - lex: 을
    tag: JKO
# ...

Reference

Documentation

Overview

Package main provides the REST API for Khaiii Korean morphological analyzer.

Directories

Path Synopsis
Package docs Code generated by swaggo/swag.
Package docs Code generated by swaggo/swag.
examples
api_client command
c_analyze command
internal
pkg
krpos/_gen command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL