Skip to main content

NLP Tools for Turkish Language.

Project description

.. |logo| image:: https://github.com/vngrs-ai/VNLP/blob/main/img/logo.png :alt: Logo :width: 256

VNLP: Turkish NLP Tools

State of the art, lightweight NLP tools for Turkish language. Developed by VNGRS. https://vngrs.com/

Functionality:

  • Sentence Splitter
  • Normalizer
    • Spelling/Typo correction
    • Convert numbers to word form
    • Deasciification
  • Stopword Remover:
    • Static
    • Dynamic
  • Stemmer: Morphological Analyzer & Disambiguator
  • Named Entity Recognizer (NER)
  • Dependency Parser
  • Part of Speech (POS) Tagger
  • Sentiment Analyzer
  • Turkish Word Embeddings
    • FastText
    • Word2Vec
  • Text Summarization: In development progress...

Installation

pip install vngrs-nlp
conda install vngrs-nlp

Documentation:

  • Detailed documentation about usage, classes, functions, datasets and evaluation metrics are available at Documentation.

Usage Example:

Dependency Parser

from vnlp import DependencyParser
dep_parser = DependencyParser()
dep_parser.predict("Onun için yol arkadaşlarımızı titizlikle seçer, kendilerini iyice sınarız.")
[(1, 'Onun', 5, 'obl'),
(2, 'için', 1, 'case'),
(3, 'yol', 1, 'nmod'),
(4, 'arkadaşlarımızı', 5, 'obj'),
(5, 'titizlikle', 6, 'obl'),
(6, 'seçer', 7, 'acl'),
(7, ',', 10, 'punct'),
(8, 'kendilerini', 10, 'obj'),
(9, 'iyice', 8, 'advmod'),
(10, 'sınarız', 0, 'root'),
(11, '.', 10, 'punct')]
# Spacy's submodule Displacy can be used to visualize DependencyParser result.
import spacy
from vnlp import DependencyParser
dependency_parser = DependencyParser()
result = dependency_parser.predict("Oğuz'un kırmızı bir Astra'sı vardı.", displacy_format = True)
spacy.displacy.render(result, style="dep", manual = True)

.. |example| image:: https://github.com/vngrs-ai/VNLP/blob/main/img/dp_vis_sample.png :alt: Example :width: 512

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vngrs-nlp-0.1.2.1.tar.gz (32.6 MB view hashes)

Uploaded Source

Built Distribution

vngrs_nlp-0.1.2.1-py3-none-any.whl (32.7 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page