wn-editor
A extension for the popular wn package, making wordnets editable from python!
Motivation
Currently the wn python package does not support editing the imported wordnets. For some usecases editing the wordnets or creating new ones on the fly is very important. This package aims to be an extension of wn and provides an API for editing wordnets.
Documentation
This package integrates directly into the wordnet database maintained by wn, and thus allowes to change data and not only provide a changed view. This is done by using different editor classes for the various wordnet components.
Quickstart
- Install this package using
pip install wn-editor - import the package (and wn) like so
import wn
from wn_editor.editor import LexiconEditor
# Get and editor for an installed lexicon
lex_edit = LexiconEditor('odenet')
# Use differnet methods to create and edit synsets
lex_edit.create_synset()
.add_word('auto')
.set_hypernym_of(wn.synsets('mercedes')[0])
- Read the wiki for more detailed info about the available methods and classes.
Metadata
Release files for wn-editor 0.5.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| wn-editor-0.5.4.tar.gz | 12.5 kB | Without provenance | Details for wn-editor-0.5.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| wn_editor-0.5.4-py3-none-any.whl | Python 3 | none | any | Details for wn_editor-0.5.4-py3-none-any.whl |
Total release size: 24.3 kB
Release files / wn-editor-0.5.4.tar.gz
| Download URL | wn-editor-0.5.4.tar.gz |
|---|---|
| Size | 12.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e99ea59670c54deb2f36af66495e26139965adae08b12a86402715f0784159d8
|
|
BLAKE2b-256 checksum How to use checksums |
c4360a2ff49765b4e94d41161911905c5bac08c0040dc43ce8588c74f12e209d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.27.1
|
Release files / wn_editor-0.5.4-py3-none-any.whl
| Download URL | wn_editor-0.5.4-py3-none-any.whl |
|---|---|
| Size | 11.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
63341b2c72bba72afd09364284c259a35f5a0226115a96fa845180f463ce77af
|
|
BLAKE2b-256 checksum How to use checksums |
b20604cc03278accd77365cddbf8c881d44950d3a39a43110ba85ca5d59d54f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.27.1
|
Security for wn-editor 0.5.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.