Skip to content

Commit

Permalink
Merge branch 'master' of github.com:mikahama/FinMeter
Browse files Browse the repository at this point in the history
  • Loading branch information
Hämäläinen, Mika K committed Oct 6, 2019
2 parents c264858 + 3725d01 commit 0397ea5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# FinMeter

[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.3473450.svg)](https://doi.org/10.5281/zenodo.3473450) [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.3473456.svg)](https://doi.org/10.5281/zenodo.3473456)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.3474018.svg)](https://doi.org/10.5281/zenodo.3474018) [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.3473456.svg)](https://doi.org/10.5281/zenodo.3473456)

FinMeter is a library for analyzing poetry in Finnish. It handels typical rhyming such as alliteration, assonance and consonance, Japanese meters and Kalevala meter. It can also be used to hyphenate Finnish.

Expand All @@ -10,7 +10,7 @@ If you use the methods relating to semantics, metaphors and sentiment, you will

python3 -m finmeter.download

Sentiment analysis requires **tensorflow** (tested on 1.9.0).
Sentiment analysis requires **tensorflow** (tested on 1.9.0 and numpy 1.16.4).

## Hyphenation

Expand Down Expand Up @@ -73,9 +73,9 @@ The library has a variety of different functions realted to semantics
from finmeter import semantics

semantics.concreteness("kissa")
>> True
semantics.is_concrete("kissa")
>> 4.615
semantics.is_concrete("kissa")
>> True

The former method outputs True if the concreteness of the word is equal or greater than 3. The latter method outputs a concreteness score from 1 to 5. Both of the methods will return None for out of vocabulary words.

Expand Down

0 comments on commit 0397ea5

Please sign in to comment.