Skip to main content

An editor for wordnets, extending the popular 'wn' package.

Project description

PyPI version

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

  1. Install this package using pip install wn-editor
  2. 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])
  1. Read the wiki for more detailed info about the available methods and classes.

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

wn-editor-0.5.4.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

wn_editor-0.5.4-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

Details for the file wn-editor-0.5.4.tar.gz.

File metadata

  • Download URL: wn-editor-0.5.4.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.27.1

File hashes

Hashes for wn-editor-0.5.4.tar.gz
Algorithm Hash digest
SHA256 e99ea59670c54deb2f36af66495e26139965adae08b12a86402715f0784159d8
MD5 b8cc5fd5cc34a5a568492ba2ed009f37
BLAKE2b-256 c4360a2ff49765b4e94d41161911905c5bac08c0040dc43ce8588c74f12e209d

See more details on using hashes here.

File details

Details for the file wn_editor-0.5.4-py3-none-any.whl.

File metadata

  • Download URL: wn_editor-0.5.4-py3-none-any.whl
  • Upload date:
  • Size: 11.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.27.1

File hashes

Hashes for wn_editor-0.5.4-py3-none-any.whl
Algorithm Hash digest
SHA256 63341b2c72bba72afd09364284c259a35f5a0226115a96fa845180f463ce77af
MD5 6871634388eb136c06d15b6c87f22efe
BLAKE2b-256 b20604cc03278accd77365cddbf8c881d44950d3a39a43110ba85ca5d59d54f6

See more details on using hashes here.

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