monbro / opensemanticapi

Allows to grab your very own wording database with semantic relations

Home Page:http://open-semantic.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

opensemanticapi with NodeJS

This project exists in two different languages:

===========================

Works with NodeJS, Restify, UnderscoreJS and Redis

Description

Will allow you to create your own semantic wording database with redis. Otherwise there will be a open api to get related words by meaning. You could say, this implementation is a light version of the idea behind http://en.wikipedia.org/wiki/Latent_semantic_analysis in combination with http://en.wikipedia.org/wiki/Open-source_intelligence

ScreenShot

Examples

The following examples where given after the system was collecting for about one hour only.

1. Example (http://localhost:8080/relations/ship):

  • Input: "ship"

  • Output: ["midshipmen", "aboard", "ships", "rating", "master", "served", "seaman", "sea", "officers", "santa", "sailing", "cadets", "able", "sail", "navigation", "lieutenant", "hms", "expected", "yahoo", "storm", "rated", "promotion", "maría", "lewis", "false", "era", "boys", "wind", "voyage", "volunteer", "servants", "required", "passing", "palos"]

2. Example (http://localhost:8080/relations/human):

  • Input: "human"

  • Output: ["humans", "evolution", "primates", "ago", "ado", "studies", "physiology", "bonobo"]

3. Example (http://localhost:8080/relations/dog):

  • Input: "dog"

  • Output: ["infant", "wildlife", "offspring", "mother", "future", "southwest", "koalas", "conflict", "animals", "aitken", "wolf", "urban", "rehabilitation", "pet", "perspective", "nursing", "mexico", "evolutionary", "weaning", "ticket", "texas", "speech", "special", "retrospective", "primate", "holtcamp", "fund", "enough", "domestic", "cost", "arizona", "210–217", "variety", "trivers", "trauma", "terms", "sprawl", "southwestern", "sense", "river", "received", "questions", "point", "perhaps", "parent", "otter", "makes", "little", "less", "himself", "gray", "gorilla", "frequently"]

Installation Guide

To Do

  • improve performance of script
  • allow certain configurations (half done)
  • try to use http://yeoman.io/ with its structure for more compatibility and understanding
  • write tests
  • connect to travis-ci
  • better folder structure
  • write version using level db or similar

Related Links

To support this project, please consider to donate.

This software is published under the MIT-License. See 'license' for more information.

About

Allows to grab your very own wording database with semantic relations

http://open-semantic.com/

License:MIT License


Languages

Language:JavaScript 100.0%