Skip to content

Commit

Permalink
Update v1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dumitrescustefan committed Aug 6, 2020
1 parent 9f630db commit 1c0287d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
[![Build Status](https://travis-ci.org/dumitrescustefan/RoWordNet.svg?branch=master)](https://travis-ci.org/dumitrescustefan/RoWordNet)
[![Python 3](https://img.shields.io/badge/python-3-blue.svg)](https://www.python.org/downloads/)
[![Version 1.0](https://img.shields.io/badge/version-1.0-red.svg)]()
[![Version 1.1](https://img.shields.io/badge/version-1.1-red.svg)]()

# RoWordNet

**RoWordNet stand for Romanian WordNet, a semantic network for the Romanian language**. RoWordNet mimics Princeton WordNet, a large lexical database of English.
The building block of a WordNet is the **synset** that expresses a unique concept. The synset (a synonym set) contains, as the name implies, a number of synonym words known as literals. The synset has more properties like a definition and links to other synsets. They also have a part-of-speech (pos) that groups them in four categories: nouns, verbs, adverbs and adjectives. Synsets are interlinked by **semantic relations** like hypernymy ("is-a"), meronymy ("is-part"), antonymy, and others.

#### New version release : 1.1

* Fixed a bug that when searching the results would give back synsets that contained incorrectly split multi-word literals. We have now added the ``strict = True`` option to obtain only entire word (or multi-word) literals. (Issue [#23](https://github.com/dumitrescustefan/RoWordNet/issues/23))
* Optimized the three similarity algorithms: ``path``, ``wup`` and ``lch``. Similarity is now significantly faster by orders of magnitute by separately computing a hypernym tree and running sim over it instead of the entire word net. (Issue [#27](https://github.com/dumitrescustefan/RoWordNet/issues/27))

## Install

Simple, use python's pip:
Expand Down
9 changes: 9 additions & 0 deletions a.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import rowordnet as rwn
rwn = rwn.RoWordNet()

a = rwn.synsets("cal")

a = rwn.synset('ENG30-03624767-n')
b = rwn.synset('ENG30-07666406-n')

print(rwn.wup_similarity(a.id,a.id))
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# $ pip install sampleproject
name='rowordnet', # Required

version='1.0.0', # Required
version='1.1.0', # Required

description='Python API for the Romanian WordNet', # Required

Expand Down

0 comments on commit 1c0287d

Please sign in to comment.