Spacy plugin working based on dexonline database
Project description
dexflex
Romanian language plugin
Dexflex leverages the SpaCy package by adding new features for the Romanian language:
- Synonym suggestion sorted by simplicity
- Automatic change for vebrs from past perfect to past simple in Romanian
- Extracting all inflected forms available for a word
The dexflex package is open source with a public repository available on GitHub at https://github.com/PetruTH/nlp_lic. Bellow is attached a code snippet for a better understanding of the framework.
from dexflex.prototype import *
import spacy
nlp = spacy.load("ro_core_news_lg")
doc = nlp("Acesta a fost un test.")
print(doc, doc._.oltenizare())
doc = nlp("Noi vom testa imediat.")
print(doc[-2]._.get_syns())
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
dexflex-0.0.9-py3-none-any.whl
(23.8 kB
view details)
File details
Details for the file dexflex-0.0.9-py3-none-any.whl
.
File metadata
- Download URL: dexflex-0.0.9-py3-none-any.whl
- Upload date:
- Size: 23.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83bcee8378b998bf7301268083b58ab9928dd90fa5365187228161621312beb9 |
|
MD5 | 97d7775b1d82420d3b7df672e72c9713 |
|
BLAKE2b-256 | a36bb373720c99c18ca766370ed20fbc611dbf2c0ac7990082ccd60b1ee31c1f |