Skip to content
snehalbhayani edited this page Oct 21, 2015 · 2 revisions

Structure

convert_wordnet

This project is a flask based project for converting wordnet to graphs. Various graphs can be created using various methods exposed through flask views.
Views implemented :

1. convert(corpus_to_use) :

Convert the wordnet data(words, relations, examples) to a graph based data storage, where nodes are words and edges are relations between words.

2. add_example_sentences(corpus_to_use) :

Add examples from the specified corpus(corpus_to_use) to the graph.

3. add_examples_to_new_graph(corpus_to_use) :

Add examples to a new graph, where each example is made up of chain of nodes and nodes are words, and edges demonstrate order in the example as a sentence.

4. add_syntactic_dependencies_to_new_graph(corpus_to_use) :

This method converts example sentences to dependency trees, converts the complete network to a graph. Here the graph has nodes which are words and edges are dependencies among words in a sentence.

5. create_sense_graph(corpus_to_use) :

This method converts wordnet to a graph where nodes are senses(definition of words) and relations are relations between senses.