Giter Club home page Giter Club logo

kagome.ipadic's Introduction

This repository has been archived. Please use kagome v2 + IPADic

License

Kagome is licensed under the Apache License v2.0 and uses the MeCab-IPADIC model. See NOTICE.txt for license details.

kagome.ipadic's People

Contributors

hiroara avatar ikawaha avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

kagome.ipadic's Issues

ひらがなをカタカナに変換し表記する際の規則

こんいちは、韓国で勉強している人です。kagomeライブラリーでひらがなをカタカナ発音表記に変換する時、特に長音の表記が場合によって違うように見えますが、どのような日本語の規則によって変換するのかを伺いたいです。例えば、

1。一般的の長音:’ー’で表記
例)そう → ソー 
例)ほう → ほー
2。半濁点の付く長音:’ー’で表記
例)ぽう → ポー
3。濁点の付く長音:’う’を生かして表記
例)ぞう → ゾウ
例)ぼう → ボウ

ここで、同じ長音なのに3番の’濁点がつく場合’のみ’う’を生かして表記する理由を伺いたいです。よろしくお願いします。

Wasm support

What should we do?

Sample code

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)
        }
}

Build

$ GOOS=js GOARCH=wasm go build -o test.wasm ./main.go

Run

https://blog.gopheracademy.com/advent-2018/go-in-the-browser/

image

Memory saving

Using kagome.ipadic on GAE/Go needs at least B4 instance.
Is it possible to save memory to be operated on a cheaper instance?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.