rhobot / hangulpy Goto Github PK
View Code? Open in Web Editor NEWHangulpy - Python Module for Hangul. 한글파이 - 한글 관련 파이썬 모듈.
Hangulpy - Python Module for Hangul. 한글파이 - 한글 관련 파이썬 모듈.
BLOSUM (http://en.wikipedia.org/wiki/BLOSUM) -like matrix curated for each part of speech
entry: 1 (spacing necessary), 0 (no spacing), NA (not determined)
example for 1: 수사 + 명사
example for 0: 명사 + (격)조사
example for NA: 명사 + 명사
다음 목표는 '동사/형용사의 불규칙 활용'이라고 생각해요.
예: 긋- + -(아/어) => 그어, 덥- + (아/어) => 더워
예외: 하- + -(아/어) => 하여
일반적인 규칙은 머릿속으로 정리 다 해 놓았는데, 실제로 구현하려면
국어사전 DB가 필요합니다.
각 단어별로 품사와 함께 불규칙 활용에 관한 field를 추가해야 합니다.
open source를 유지하면서 힘들지 않게 DB 구축을 하려면 어떻게 해야 할까요?
파이썬 3.6에서 문법 에러가 있어서 다음과 같이 수정이 필요합니다.
121 except Exception as e:
134-139
code = ord(hangul_letter) - FIRST_HANGUL_UNICODE
jongsung_index = int(code % NUM_JONGSUNGS)
code /= NUM_JONGSUNGS
joongsung_index = int(code % NUM_JOONGSUNGS)
code /= NUM_JOONGSUNGS
chosung_index = int(code)
Is it already supported in unicode?
If so, we must provide in addition to this:
apply 두음법칙 to the table
example:
if Hanja is at the first syllable of a word,
read 羅 as 나.
This phenomenon is most prominent when you sort Hanja-and-Hangul-containing lists.
羅針盤 appears after '라', not after '나' as you would expect by common sense.
A Korean text including formats like {el}, {eg}.
These formats automatically are converted into their related 'josa's.
The format style in number 2 seems to be more intuitive.
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.