Git Product home page Git Product logo

tokenize_chinese_nlp's Introduction

NLP - Tokenize Chinese Phrases

Background

This github contains codes which are supplement to my Medium Post related to tokenizing Chinese phrases.

This Github contains 3 folders related to 3 major sections in the post:

  1. Poem
  2. Written Chinese
  3. Cantonese

Note: Chinese words does not mean Chinese phrases. Chinese word means one Chinese characters, while Chinese phrases are phrases that make up with one or more characters.

Poem

The section of "Tokenizing individual Chinese characters of an ancient Chinese Poem" investigates how to tokenize Chinese Phrases by spliting individual Chinese words with Chinese poem written in 1000 years ago, or Tang Dynasty:

  1. Unigram (Tokenize by Chinese words)
  2. Tokenize using jieba (Did not mention in the Medium Post)

    You may find the related codes by going to the folder by clicking here

Written Chinese

The section of "Tokenizing individual Chinese characters of a Hong Kong news article" and "Using the package jieba to tokenize" investigate how and why to tokenize Chinese Phrases with jieba.

You may find the related codes by going to the folder by clicking here

Cantonese

The section of "How about Cantonese?" investigates the performance of jieba on written Cantonese.

You may find the related codes by going to the folder by clicking here

Files

  • sino_punc.txt This file contains all punctuation of Chinese, for regex.

tokenize_chinese_nlp's People

Contributors

jacquessham avatar

Stargazers

Yubin KANG avatar Iven Kwan avatar Art Shendrik avatar Nico Manzonelli avatar  avatar Mingfai Ma avatar Scott Lawson avatar

Watchers

James Cloos avatar

Forkers

fortuno-cisc

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.