Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Jaime Collado
/
textflow
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
dd4c4c96
authored
Jul 01, 2022
by
Arturo Montejo Ráez
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fixed pyproject.toml to include lexical diversity
parent
a62f3ec9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletions
pyproject.toml
textflow/LexicalDiversityAnalyzer.py
pyproject.toml
View file @
dd4c4c96
...
...
@@ -10,6 +10,7 @@ nltk = "^3.7"
spacy
=
"^3.3.0"
transformers
=
"^4.19.0"
torch
=
{version
=
"^1.11.0"
,
python
=
"^3.7"
,
platform
=
"linux"
}
lexical-diversity
=
"^0.1.1"
[tool.poetry.dev-dependencies]
pytest
=
"^5.2"
...
...
textflow/LexicalDiversityAnalyzer.py
View file @
dd4c4c96
...
...
@@ -26,7 +26,7 @@ class LexicalDiversityAnalyzer(Analyzer):
def
analyze
(
self
,
sequence
,
tag
,
levelOfAnalyzer
,
levelOfResult
:
Optional
[
str
]
=
""
):
"""
Analyze a sequence with a
stylometr
y function.
Analyze a sequence with a
lexical a diversit
y function.
Args:
sequence: the Sequence we want to analyze.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment