From 458202279727c04231b67d74c4d5aa3a9e4e4fc1 Mon Sep 17 00:00:00 2001 From: Husnu Sensoy Date: Sun, 21 Feb 2021 22:01:53 +0300 Subject: [PATCH] Fix 0.18 errors Remove deprecated summarizer. Add profanity and tweet_sentiment dataset dependencies. Add release number --- sadedegel/about.py | 2 +- sadedegel/summarize/evaluate/__main__.py | 2 +- setup.py | 7 +++++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/sadedegel/about.py b/sadedegel/about.py index d5be049d..673797a3 100644 --- a/sadedegel/about.py +++ b/sadedegel/about.py @@ -1,5 +1,5 @@ __title__ = "sadedegel" # pragma: no cover -__version__ = "0.18" # pragma: no cover +__version__ = "0.18.2" # pragma: no cover __release__ = True # pragma: no cover __download_url__ = "https://github.com/globalmaksimum/sadedegel/releases" # pragma: no cover __herokuapp_url__ = "https://sadedegel.herokuapp.com" # pragma: no cover diff --git a/sadedegel/summarize/evaluate/__main__.py b/sadedegel/summarize/evaluate/__main__.py index b358cf9e..56a82d73 100644 --- a/sadedegel/summarize/evaluate/__main__.py +++ b/sadedegel/summarize/evaluate/__main__.py @@ -9,7 +9,7 @@ from ..tf_idf import TFIDFSummarizer from ..baseline import BandSummarizer, RandomSummarizer, PositionSummarizer, LengthSummarizer from ..rouge import Rouge1Summarizer -from ..rank import TextRank, LexRankPureSummarizer, LexRankSummarizer +from ..rank import TextRank, LexRankSummarizer import click diff --git a/setup.py b/setup.py index b49c3014..53f6563f 100644 --- a/setup.py +++ b/setup.py @@ -18,10 +18,13 @@ def version(): # Needed to silence warnings (and to be a worthwhile package) name='sadedegel', # Needed to actually package something - packages=['sadedegel', 'sadedegel.bblock', 'sadedegel.dataset', 'sadedegel.dataset.extended', 'sadedegel.summarize', + packages=['sadedegel', 'sadedegel.bblock', + 'sadedegel.dataset', 'sadedegel.dataset.extended', 'sadedegel.dataset.profanity', + 'sadedegel.dataset.tweet_sentiment', 'sadedegel.dataset.tscorpus', + 'sadedegel.summarize', 'sadedegel.summarize.evaluate', 'sadedegel.summarize.util', 'sadedegel.extension', - 'sadedegel.dataset.tscorpus', 'sadedegel.bblock.cli', + 'sadedegel.bblock.cli', 'sadedegel.tokenize', 'sadedegel.ml', 'sadedegel.server', 'sadedegel.metrics', 'sadedegel.prebuilt'], package_data={