This repository has been archived. Please use kagome v2 + IPADic
Kagome is licensed under the Apache License v2.0 and uses the MeCab-IPADIC model. See NOTICE.txt for license details.
License: Apache License 2.0
This repository has been archived. Please use kagome v2 + IPADic
Kagome is licensed under the Apache License v2.0 and uses the MeCab-IPADIC model. See NOTICE.txt for license details.
こんいちは、韓国で勉強している人です。kagomeライブラリーでひらがなをカタカナ発音表記に変換する時、特に長音の表記が場合によって違うように見えますが、どのような日本語の規則によって変換するのかを伺いたいです。例えば、
1。一般的の長音:’ー’で表記
例)そう → ソー
例)ほう → ほー
2。半濁点の付く長音:’ー’で表記
例)ぽう → ポー
3。濁点の付く長音:’う’を生かして表記
例)ぞう → ゾウ
例)ぼう → ボウ
ここで、同じ長音なのに3番の’濁点がつく場合’のみ’う’を生かして表記する理由を伺いたいです。よろしくお願いします。
What should we do?
main.go
package main
import (
"fmt"
"strings"
"github.com/ikawaha/kagome.ipadic/tokenizer"
)
func main() {
t := tokenizer.New()
tokens := t.Tokenize("寿司が食べたい。") // t.Analyze("寿司が食べたい。", tokenizer.Normal)
for _, token := range tokens {
if token.Class == tokenizer.DUMMY {
// BOS: Begin Of Sentence, EOS: End Of Sentence.
fmt.Printf("%s\n", token.Surface)
continue
}
features := strings.Join(token.Features(), ",")
fmt.Printf("%s\t%v\n", token.Surface, features)
}
}
$ GOOS=js GOARCH=wasm go build -o test.wasm ./main.go
https://blog.gopheracademy.com/advent-2018/go-in-the-browser/
Using kagome.ipadic on GAE/Go needs at least B4 instance.
Is it possible to save memory to be operated on a cheaper instance?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.