Korean Word Spacing with RNN.
HTML
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
model
Concept03_kor_word_spacing_rnn.Rmd
Concept03_kor_word_spacing_rnn.html
Concept03_kor_word_spacing_rnn.md
KoWordSpacing.Rproj
README.md
input.txt.bz2
lstm.png
lstm.xml

README.md

KoWordSpacing

  • Korean Word Spacing with bidirectional LSTM and Linear CRF.

Requirement(R package)

  • tensorflow

  • hashmap

  • wordVectors

  • caret

  • stringr

  • stringi

  • data.table

  • reshape2

  • Detail was dicussed on this blog link(Korean).

Request Model Results with REST API

> library(reticulate)
> requests <- import('requests')

> requests$put('http://35.201.156.140:8080/spacing', 
      data=list(sent="나머지인생을설탕물이나팔면서보내고싶습니까,아니면세상을바꿔놓을기회를갖고싶습니까?"))$json() 
$sent
[1] "나머지 인생을 설탕물이나 팔면서 보내고 싶습니까, 아니면 세상을 바꿔놓을 기회를 갖고 싶습니까? "