Code Monkey home page Code Monkey logo

wn2sql's Introduction

*******************************************************************************

  wordnet2sql 0.99.4

  SOURCE DOCUMENTATION

*******************************************************************************



Let's start off with a little graphic:

+------------------+
+ dictionary-files +
+-+----------------+
  |
  translatewn.py
  |
+-+-------+ +------------+
| rawdata | | staticdata |
+-------+-+ +-+----------+
        |     |
        +     +
        \     /
          \ /
           |
     +-----+------+
     | data/*.bz2 |
     +-----+------+
           |
       tomysql.sed
           |
+----------+-------------+
| data.mysql/*.mysql.bz2 |
+------------------------+

1.  If you want to convert WordNet's data-files, first
    thing you need is: WordNet!

        You can get it from:
        http://www.cogsci.princeton.edu/~wn/

2.  Next thing: you have to tell wordnet2sql where to
    find WordNet. You have to create a file called

        config.py

    This file might look like:

        DICTDIR="/root/wn/dict"
        TMPDIR="/tmp"

    Use "make sampleconfig" to create this sample-config, and
    edit the config.py afterwards.

    DICTDIR is the directory, where translatewn.py expects
    to find the data.* files from WordNet.
    TMPDIR is the directory, where translatewn.py saves
    some intermediate objects, for debug purposes only!
    Just have a look at translatewn.py, to get an impression
    of what exactly that is.

3.  The above process may seem a bit complicated, but it
    isn't at all. Actually the core of wordnet2sql is
    translatewn.py, producing an SQL-File you could without
    problems run against any dbms! Try out ./translatewn.py | mysql
    if you don't believe me. The other make-targets are just
    to create the convenient .bz2 and .mysql.bz2-files you
    can find on the homepage.

These are the make-targets:

rawdata:
  makes only the "rawdata"-file.

tabs:
  makes the files in data/*.tab

mysql:
  makes the files in data.mysql/*.mysql

tabs-dist:
  makes the files in dist/*.bz2

mysql-dist:
  makes the files in dist.mysql/*.mysql.bz2

all:
  makes all of the above

clean:
  cleans up everything



*******************************************************************************
                                         (c) Copyright 2007 by Richard Bergmair

Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.2 or
any later version published by the Free Software Foundation;
*******************************************************************************

wn2sql's People

Contributors

rbergmair avatar

Stargazers

Trenton Moore avatar

Watchers

 avatar

Forkers

akirak

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.