Skip to content

Commit

Permalink
MBN renamed to NND
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdi-mirzapour committed Aug 8, 2021
1 parent 0d20a5b commit 4b4c124
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name="lingx",
version="0.1.5",
version="0.1.6",
description="A library for introducing state-of-the-art metrics on measuring linguistic complexity",
long_description=open("README.md", encoding="utf-8").read(),
long_description_content_type="text/markdown",
Expand Down
4 changes: 2 additions & 2 deletions tests/test_mbn.py → tests/test_nnd.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
from lingx.core.lang_model import get_nlp_object
from lingx.metrics.monolingual.mbn import get_mbn_score
from lingx.metrics.monolingual.nnd import get_nnd_score

def test_mbn():

nlp_en = get_nlp_object("en", use_critt_tokenization = True, package="partut")

input = [["The", "reporter", "who", "the", "senator", "who", "John", "met", "attacked"], ["disliked", "the", "editor", "."]]

score = get_mbn_score(
score = get_nnd_score(
input,
nlp=nlp_en,
aggregator="sum", # choose `sum`, `max` or `mean`
Expand Down

0 comments on commit 4b4c124

Please sign in to comment.