Difference between revisions of "Language/Multiple-languages/Culture/Text-Processing-Tools"

From Polyglot Club WIKI
Jump to navigation Jump to search
Line 14: Line 14:
In Arabic writing system, diacritics indicate the accents, but they are often omitted for writing fluently. The process of restoring them is called diacritization.
In Arabic writing system, diacritics indicate the accents, but they are often omitted for writing fluently. The process of restoring them is called diacritization.


Tools:
<big><b>Tools:</b></big>
 
Arabic:
Arabic:
* Farasa https://github.com/MagedSaeed/farasapy
* Farasa https://github.com/MagedSaeed/farasapy
Line 30: Line 31:
The solution is called “[https://en.wikipedia.org/wiki/Text_segmentation#Word_segmentation word segmentation]”, which detects words and insert spaces in between. You may want to ask: The programs only recognise spaces as the word separators, how to deal with Vietnamese? The answer is using the [https://en.wikipedia.org/wiki/Non-breaking_space non-breaking space].
The solution is called “[https://en.wikipedia.org/wiki/Text_segmentation#Word_segmentation word segmentation]”, which detects words and insert spaces in between. You may want to ask: The programs only recognise spaces as the word separators, how to deal with Vietnamese? The answer is using the [https://en.wikipedia.org/wiki/Non-breaking_space non-breaking space].


<b>Tools:</b>
<big><b>Tools:</b></big>


Chinese:
Chinese:

Revision as of 14:38, 20 May 2021


In this lesson, several useful linguistic tools useful for common language learners are discussed.

Many of tools introduced are written in Python, which is an important language in machine learning. It's very easy to use: just create a blank “.py” file, write a line to import from the library, write a line to segment the text, write a line to save the result.

If you don't know Python, please try this:

In progress.

Diacritization

In Arabic writing system, diacritics indicate the accents, but they are often omitted for writing fluently. The process of restoring them is called diacritization.

Tools:

Arabic:

Yoruba:

Word segmentation

In some languages, words are not separated by spaces, for example: Chinese, Japanese, Lao, Thai. In Vietnamese, spaces are used to divide syllables instead of words. This brings about difficulties for computer programs like VocabHunter, gritz and text-memorize, where words are detected only with spaces.

The solution is called “word segmentation”, which detects words and insert spaces in between. You may want to ask: The programs only recognise spaces as the word separators, how to deal with Vietnamese? The answer is using the non-breaking space.

Tools:

Chinese:

Japanese:

Thai:

Vietnamese: