Skip to content
프로젝트

emres/turkish-deasciifier

GitHub에서 보기

소개

Turkish deasciifier in Python based on Deniz Yüret's turkish-mode for Emacs

AI 및 머신러닝

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

turkish-deasciifier: Turkish deasciifier

This is a deasciifier Python library and command line utility for Turkish that solves the problem of diacritics restoration (also known as diacritics reconstruction). It takes a Turkish string containing only ASCII characters (that is, without proper diacritics) and replaces the relevant characters with their corresponding Turkish letters.

The web-based, online version of this system is available at:

http://turkceyap.appspot.com (I'm currently too busy to fix it, please use https://deasciifier.com/ instead!)

Keep in mind that diacritics restoration (deasciification) for Turkish doesn't work 100% of the time; it is an active research topic! Still, this library is good enough for many practical purposes, and served many people and projects in the last 15 years.

This system is based on the turkish-mode for GNU Emacs by Prof. Deniz Yüret.

Table of Contents

  1. Installation
  2. Example Python Library Usage
  3. Example CLI (Command Line Interface) Usage
  4. Other Programming Languages and Systems
  5. Advanced Research

Installation

Requires Python 3.11+. Works on all platforms (Linux, macOS Intel & Apple Silicon, Windows).

Install from the project root using pip (PEP 517 build):

pip install .

Or install directly from GitHub:

pip install git+https://github.com/emres/turkish-deasciifier.git

Editable install for development:

pip install -e .

Example Python Library Usage

from turkish.deasciifier import Deasciifier

my_ascii_turkish_txt = "Opusmegi cagristiran catirtilar."
deasciifier = Deasciifier(my_ascii_turkish_txt)
my_deasciified_turkish_txt = deasciifier.convert_to_turkish()
print(my_deasciified_turkish_txt)

Or use the package shorthand:

from turkish import Deasciifier
```		


### Example CLI (Command Line Interface) Usage

After installation, the `turkish-deasciify` command is available:

```shell
$ echo "Opusmegi cagristiran catirtilar." | turkish-deasciify
$ cat somefile.txt | turkish-deasciify

You can also run the module directly: python -m turkish

Running tests

python -m unittest tests

Other Programming Languages and Systems

Advanced Research

For recent advanced scientific research articles, please see the following:

관련 프로젝트 살펴보기

불러오는 중…