Skip to content
프로젝트

소개

터키어용 NLP 도구입니다.

AI 및 머신러닝

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
+1
in 7 days
+7
in 15 days
+12
in 1 month
+17

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

README.md

Original

Zemberek-NLP

Zemberek-NLP provides Natural Language Processing tools for Turkish.

Latest version is 0.21.0. Change Log

Please read the FAQ for common questions.

Modules

Module Maven Id
Core zemberek-core Special Collections, Hash functions and helpers.
Morphology zemberek-morphology Turkish morphological analysis, disambiguation and word generation.
Tokenization zemberek-tokenization Turkish tokenization, detokenization and sentence boundary detection.
Normalization zemberek-normalization Spell checker, deasciifier (LatticeDeasciifier), and noisy text normalization.
Dependency Parsing zemberek-dependency Universal Dependencies v2 (UD_Turkish-BOUN) syntactic dependency parser (4.2 MB pure Java).
NER zemberek-ner Turkish Named Entity Recognition.
Classification zemberek-classification Text classification based on Java port of fastText project.
Language Identification zemberek-lang-id Fast identification of text language.
Language Modeling zemberek-lm Provides a language model compression algorithm.
Applications zemberek-apps Console applications and interactive Web Demo Studio (StartWebDemo).
gRPC Server zemberek-grpc gRPC server for access from other languages.
Examples zemberek-examples Usage examples.

Interactive Web Demo Studio

You can explore morphological analysis, ambiguity resolution, dependency parsing, noisy text normalization, deasciification, and tokenization interactively with StartWebDemo (./apps/run_demo.sh):

Zemberek Web Demo — Morphological Analysis & Disambiguation

Usage

Maven

Add this to pom.xml file

    <repositories>
        <repository>
            <id>zemberek-repo</id>
            <name>zemberek Maven Repo on Github</name>
            <url>https://raw.github.com/ahmetaa/maven-repo/master</url>
        </repository>
    </repositories>

And dependencies (For example morphology):

    <dependencies>
        <dependency>
            <groupId>zemberek-nlp</groupId>
            <artifactId>zemberek-morphology</artifactId>
            <version>0.21.0</version>
        </dependency>
    </dependencies>

Jar distributions

Google drive page contains jar files for different versions.

[zemberek-full.jar] is a single jar that contains all modules and dependencies. When it is run directly with

  java -jar zemberek-full.jar

It will list available console applications.

Docker

A Dockerfile is provided that builds zemberek-full.jar from source and packages it in a Java 21 runtime image:

docker build -t zemberek .

By default the container starts the gRPC server on port 6789:

docker run -p 6789:6789 zemberek

Any other console application can be run by passing its name and parameters. For example, the web demo (open http://localhost:8080) or the interactive morphology console:

docker run -p 8080:8080 zemberek StartWebDemo --host 0.0.0.0
docker run -it zemberek MorphologyConsole

To list available applications:

docker run --rm --entrypoint java zemberek -jar /app/zemberek-full.jar

The JVM heap defaults to 75% of the container memory limit. It can be changed through JAVA_TOOL_OPTIONS, e.g. docker run -e JAVA_TOOL_OPTIONS="-Xmx2g" ....

For Developers

Here information about how to compile the code and generate jar files from the project is explained.

Examples

There is an examples module in the code for usage examples.

Also, there is a separate project with same examples that uses Zemberek-NLP as maven modules: Turkish-nlp-examples

Known Issues and Limitations

  • NER module does not provide a model yet.
  • Library is not well-tested for multi-threaded usage.

Please see issues section for further issues and feel free to create new ones.

License

Code is licensed under Apache License, Version 2.0

Citing

If you use this project in an academic publication, please refer to this site.

Acknowledgements

Please refer to contributors.txt file.

관련 프로젝트 살펴보기

불러오는 중…