Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion contexto/utils/tokenizacion.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
from collections import Iterable
try:
# Python <= 3.9
from collections import Iterable
except ImportError:
# Python > 3.9
from collections.abc import Iterable
from nltk.tokenize.treebank import TreebankWordDetokenizer
from nltk.tokenize.toktok import ToktokTokenizer

Expand Down
45 changes: 21 additions & 24 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,28 @@


INSTALL_REQUIRES = [
"click<7.2.0,>=7.1.1",
"click==8.1.3",
"docx2txt==0.8",
"gensim==4.0.1",
"googletrans==2.4.0",
"jellyfish==0.8.2",
"gensim==4.3.1",
"googletrans==3.0.0",
"jellyfish==0.9.0",
"langid==1.1.6",
"matplotlib>=3.3.4",
"networkx==2.5.1",
"nltk==3.6.2",
"pandas>=0.25.3",
"pdf2image==1.16.0",
"PyPDF2==1.26.0",
"pyspellchecker==0.6.2",
"pytesseract==0.3.7; python_version<'3.8.4'",
"pytesseract>=0.3.7; python_version>='3.8.5'",
"python-docx>=0.8.11",
'pywin32>=227; platform_system=="Windows"',
"opencv-python>=4.5.2.54",
"reportlab==3.5.68",
"scikit-learn>=0.24.2",
"matplotlib==3.7.1",
"networkx==3.0",
"nltk==3.8.1",
"pandas==1.5.3",
"pdf2image==1.16.3",
"PyPDF2==3.0.1",
"pyspellchecker==0.7.1",
"pytesseract==0.3.10",
"python-docx==0.8.11",
"opencv-python==4.7.0.72",
"reportlab==3.6.12",
"scikit-learn==1.2.2",
"slate3k==0.5.3",
"spacy>=3.0.6",
"stanza>=1.2.1",
"wordcloud>=1.8.1",
"spacy==3.5.1",
"stanza==1.5.0",
"wordcloud==1.8.2.2",
]

PACKAGE_NAME = "ConTexto"
Expand All @@ -41,9 +39,7 @@
author_email="ucd@dnp.gov.co",
maintainer="Unidad de Científicos de Datos - UCD",
maintainer_email="ucd@dnp.gov.co",
description=(
"Librería para el procesamiento y análisis de texto con Python"
),
description=("Librería para el procesamiento y análisis de texto con Python"),
long_description=long_description,
long_description_content_type="text/markdown",
license="MIT",
Expand Down Expand Up @@ -73,6 +69,7 @@
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
],
python_requires=">=3.6.2",
)