-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #110 from AnFreTh/main
Releasing version 0.2.0
- Loading branch information
Showing
10 changed files
with
119 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,28 @@ | ||
# basics | ||
numpy<=1.26.4 | ||
numpy | ||
pandas | ||
pyarrow | ||
scikit-learn==1.1.0 | ||
scipy==1.10.1 | ||
scikit-learn | ||
nltk | ||
datasets | ||
|
||
# dl | ||
lightning==2.3.3 | ||
torch==2.4.0 | ||
lightning | ||
torch | ||
sentence_transformers | ||
|
||
# nlp | ||
transformers==4.40.2 | ||
setfit==1.0.3 | ||
gensim==4.2.0 | ||
umap-learn==0.5.6 | ||
wordcloud==1.9.3 | ||
transformers | ||
gensim | ||
umap-learn | ||
|
||
|
||
community | ||
networkx==3.3 | ||
networkx | ||
python_louvain | ||
langdetect | ||
hdbscan==0.8.37 | ||
huggingface_hub==0.23.5 | ||
# nltk | ||
# datasets==2.20.0 | ||
# sentence-transformers==3.0.1 | ||
|
||
|
||
# plotting | ||
dash | ||
plotly | ||
matplotlib | ||
|
||
# misc | ||
loguru | ||
ipywidgets | ||
ipykernel<6.22.0 | ||
# tqdm | ||
# pre-commit | ||
optuna==3.6.1 | ||
optuna-integration==3.6.0 | ||
optuna | ||
optuna-integration |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,8 @@ | |
# -*- coding: utf-8 -*- | ||
import os | ||
from pathlib import Path | ||
|
||
from setuptools import find_packages, setup | ||
from setuptools.command.install import install | ||
|
||
# Package meta-data. | ||
NAME = "stream_topic" | ||
|
@@ -12,7 +12,27 @@ | |
DOCS = "https://stream.readthedocs.io/en/" | ||
EMAIL = "[email protected]" | ||
AUTHOR = "Anton Thielmann" | ||
REQUIRES_PYTHON = ">=3.6, <=3.11" | ||
REQUIRES_PYTHON = ">=3.6" | ||
|
||
|
||
class PostInstallCommand(install): | ||
"""Post-installation for downloading NLTK resources.""" | ||
|
||
def run(self): | ||
install.run(self) | ||
try: | ||
import nltk | ||
|
||
nltk.download("stopwords") | ||
nltk.download("wordnet") | ||
nltk.download("punkt_tab") | ||
nltk.download("brown") | ||
nltk.download("averaged_perceptron_tagger_eng") | ||
except ImportError: | ||
print( | ||
"NLTK not installed. Ensure it is listed in install_requires or installed separately." | ||
) | ||
|
||
|
||
# Load the package's verison file and its content. | ||
ROOT_DIR = Path(__file__).resolve().parent | ||
|
@@ -30,6 +50,13 @@ | |
if not line.startswith("#") and not line.startswith("git+") | ||
] | ||
|
||
extras_require = { | ||
"plotting": ["dash", "plotly", "matplotlib", "wordcloud"], | ||
"bertopic": ["hdbscan"], | ||
"dcte": ["pyarrow", "setfit"], | ||
} | ||
|
||
|
||
# get long description from readme file | ||
with open(os.path.join(ROOT_DIR, "README.md")) as f: | ||
LONG_DESCRIPTION = f.read() | ||
|
@@ -45,7 +72,7 @@ | |
author_email=EMAIL, | ||
python_requires=REQUIRES_PYTHON, | ||
install_requires=install_reqs, | ||
# extras_require=extras_reqs, | ||
extras_require=extras_require, | ||
license="MIT", # adapt based on your needs | ||
packages=find_packages(exclude=["examples", "examples.*", "tests", "tests.*"]), | ||
include_package_data=True, | ||
|
@@ -65,4 +92,7 @@ | |
], | ||
project_urls={"Documentation": DOCS}, | ||
url=HOMEPAGE, | ||
cmdclass={ | ||
"install": PostInstallCommand, | ||
}, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
"""Version information.""" | ||
|
||
# The following line *must* be the last in the module, exactly as formatted: | ||
__version__ = "0.1.9" | ||
__version__ = "0.2.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters