fixed pyproject.toml to include lexical diversity

parent a62f3ec9
...@@ -10,6 +10,7 @@ nltk = "^3.7" ...@@ -10,6 +10,7 @@ nltk = "^3.7"
spacy = "^3.3.0" spacy = "^3.3.0"
transformers = "^4.19.0" transformers = "^4.19.0"
torch = {version = "^1.11.0", python = "^3.7", platform = "linux"} torch = {version = "^1.11.0", python = "^3.7", platform = "linux"}
lexical-diversity = "^0.1.1"
[tool.poetry.dev-dependencies] [tool.poetry.dev-dependencies]
pytest = "^5.2" pytest = "^5.2"
......
...@@ -26,7 +26,7 @@ class LexicalDiversityAnalyzer(Analyzer): ...@@ -26,7 +26,7 @@ class LexicalDiversityAnalyzer(Analyzer):
def analyze(self, sequence, tag, levelOfAnalyzer, levelOfResult:Optional[str]= ""): def analyze(self, sequence, tag, levelOfAnalyzer, levelOfResult:Optional[str]= ""):
""" """
Analyze a sequence with a stylometry function. Analyze a sequence with a lexical a diversity function.
Args: Args:
sequence: the Sequence we want to analyze. sequence: the Sequence we want to analyze.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment