bogoengine / bogo-python Goto Github PK
View Code? Open in Web Editor NEWPython library for implementing Vietnamese input method editors with a purely functional interface.
License: GNU General Public License v3.0
Python library for implementing Vietnamese input method editors with a purely functional interface.
License: GNU General Public License v3.0
Kết quả mong đợi là ơư, giống như gõ ][ thì ra ươ.
Thay vì chỉ viết tắt mã issue thì viết lại đầy đủ link trỏ tới issue. Lưu ý là sẽ thay đổi lịch sử.
Kết quả mong đợi là 'TỪ TỪ'
Syllable (âm tiết) là đơn vị xử lý cơ bản của bogo, bao gồm phụ âm đầu, nguyên âm và phụ âm cuối. Thay đổi cách sử dụng khái niệm sẽ khiến code trong sáng và đúng về mặt khoa học hơn.
Hiện tại thời gian chạy test trên server rất lâu. Có thể đo edit distance giữa các từ đơn tiếng Việt để xác định xem những nhóm từ nào được xử lý giống hệt nhau (vd hương và khương) để bỏ bớt đi.
Kết quả mong đợi là way.
Một số người có lỗi đánh máy "uwo" thay vì "uwow" hoặc "uow". Khi gặp chuỗi "ưong" thì có thể khẳng định chắc chắn đây là lỗi đánh máy và nên sửa thành "ương".
Ví dụ: process_sequence("con meof ddieen") sẽ ra "con mèo điên". Việc này cho phép bogo có thể undo những từ đã gõ ở trước.
http://en.wiktionary.org/wiki/gi%E1%BA%B7t_g%E1%BB%B5a
Gỵa, pronounced dịa, is the only remaining instance of "gy-" in modern Vietnamese and one of only a few words ending in "-ya" (another being khuya). Some writers instead use the less exotic spelling gịa, which is not to be confused with giạ (“grain measure; about 40 liters or 30 kilograms of rice”) or dạ (“yes”).
>>> bogo.validation.is_valid_string('gỵa')
False
process_sequence(u"mèoj") ra u"mèọ".
process_sequence('sýs')
không ra sys.
Patch của n0bawk: http://paste.ubuntu.com/7616828/
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.