Giter Club home page Giter Club logo

g2pkk's Introduction

g2pkk

This is a cross-platform g2p for Korean.

g2pkk is a library that made Kyubyong's g2pk work in Windows. The reason why g2pk does not work well in Windows is that the mecab, the morpheme analyzer used by g2pk, causes build errors in Windows. g2pkk uses a different morpheme analyzer depending on the operating system. Windows uses eunjeon, which enables mecab to be used in Windows, and other operating systems use python-mecab-ko, which was previously used in g2pk.

Install g2pkk and make sure that a morpheme analyzer exists for the operating system of the system you are using for the first time, and if not, proceed with the installation automatically.

Requirements

  • python >= 3.6
  • jamo
  • nltk

Installation

pip install g2pkk

How To Use

g2pkk uses same syntaxes as g2pk.

>>> from g2pkk import G2p
>>> g2p = G2p("포상은 열심히 한 아이에게만 주어지기 때문에 포상인 것입니다.")
>>> g2p("포상으 녈심히 하 나이에게만 주어지기 때무네 포상인 거심니다.")

If you want more information, check g2pk

g2pkk's People

Contributors

harmlessman avatar p0p4k avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

g2pkk's Issues

Remove nltk dependency?

NLTK is required by g2pkk only to load the CMU lexicon data. It might be better to include the lexicon file in this repository and load it manually in g2pkk. Then g2pkk and Coqui TTS don't need to depend on the entire NLTK library.

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.