Skip to content

bloyal/neoWordNet

Repository files navigation

neoWordNet

WordNet is an open-source lexical database of the English language. It structures words together into groups of cognitive synonyms, or "synsets", representing a unique concept. The neoWordNet package allows you to easily create your own WordNet instance in Neo4j, a leading graph database.

Contents

Install

install.packages("devtools")
devtools::install_github("bloyal/neoWordNet")
library(neoWordNet)

Start Neo4j

All neoWordNet functions require you to first download, install, and start a Neo4j instance. Please refer to the Neo4j download page for more information.

Download Database Files and Create WordNet Graph

Use the getAndCreateNeoWn function to download the required database files and create a Wordnet graph all at once. The function returns a graph object that can be used with Nicole White's RNeo4j package (included with neoWordNet) to query the database.

graph <- getAndCreateNeoWn(dest="Users/Brian/Downloads", url = "http://localhost:7474/db/data/", username="neo4j",password="password")

Get Word Information

neoWordNet comes with a basic function for returning sense information and related terms for a given word.

getWordInfo(graph, word="hound")
##  word  pos   sense gloss ...
##  hound Noun  1     any of several breeds of dog...
##  hound Noun  2     someone who is morally reprehensible...
##  hound Verb  3     pursue or chase relentlessly...

About

R package to easily create a WordNet in Neo4j

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages