Skip to content

Commit 4b4c124

Browse files
MBN renamed to NND
1 parent 0d20a5b commit 4b4c124

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setup(
77
name="lingx",
8-
version="0.1.5",
8+
version="0.1.6",
99
description="A library for introducing state-of-the-art metrics on measuring linguistic complexity",
1010
long_description=open("README.md", encoding="utf-8").read(),
1111
long_description_content_type="text/markdown",

tests/test_mbn.py renamed to tests/test_nnd.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
from lingx.core.lang_model import get_nlp_object
2-
from lingx.metrics.monolingual.mbn import get_mbn_score
2+
from lingx.metrics.monolingual.nnd import get_nnd_score
33

44
def test_mbn():
55

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

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

10-
score = get_mbn_score(
10+
score = get_nnd_score(
1111
input,
1212
nlp=nlp_en,
1313
aggregator="sum", # choose `sum`, `max` or `mean`

0 commit comments

Comments
 (0)