https://github.com/kemalcanbora/zemberek_parser
Turkish NLP Lib
https://github.com/kemalcanbora/zemberek_parser
nlp python-3 turkish-language zemberek-nlp
Last synced: 6 months ago
JSON representation
Turkish NLP Lib
- Host: GitHub
- URL: https://github.com/kemalcanbora/zemberek_parser
- Owner: kemalcanbora
- Created: 2017-10-28T12:43:41.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-10-10T18:42:08.000Z (over 1 year ago)
- Last Synced: 2025-04-28T17:57:26.799Z (11 months ago)
- Topics: nlp, python-3, turkish-language, zemberek-nlp
- Language: Python
- Homepage:
- Size: 148 MB
- Stars: 55
- Watchers: 2
- Forks: 12
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Zemberek Parser
Turkce icin NLP kutuphanesi.
```python
from zemberek import TurkishWordNet
turkish_wn = TurkishWordNet()
# Example usage
word = "acayip"
word_info = turkish_wn.get_word_info(word)
if word_info:
for info in word_info:
print(f"Word: {word}")
print(f"Part of Speech: {info['pos']}")
print(f"Definition: {info['definition']}")
print(f"Synonyms: {', '.join(info['synonyms'])}")
if info['example']:
print(f"Example: {info['example']}")
print()
else:
print(f"No information found for the word: {word}")
# output:
# Word: acayip
# Part of Speech: a
# Definition: Sağduyuya, göreneğe, olağana aykırı, yadırganan
# Synonyms: yabansı, çok şey, garip, cins
# Example: Acayip kıyafet
```
##### Bug ve Diğer durumlar
- Kütüphaneyi kullandığınızda karşılaştığınız hataları belirtirseniz (PR, MR açabilirsiniz veya direk bana ulaşabilirsiniz)
- Tez veya çalışmanızda repoyu kaynak verirseniz başka insanlar da faydalanabilir.
#### CoLab
- `!apt-get install openjdk-8-jdk-headless -qq > /dev/null`
- `!pip install git+https://github.com/kemalcanbora/zemberek_parser.git`