GithubHelp home page GithubHelp logo

wn-editor's Introduction

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.

wn-editor's People

Contributors

hypercookie avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

fcbond

wn-editor's Issues

Add Documentation

Currently the documentation is.. minimal.
That needs to be changed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.