From cebf5c7799e6a1c5841ddaacaa4c5767a972d0bd Mon Sep 17 00:00:00 2001 From: Gautier Solard <104368859+gsolard@users.noreply.github.com> Date: Mon, 4 Sep 2023 11:15:13 +0200 Subject: [PATCH] [FIX] Updates local version naming convention (#22) * Minor changes * -local to +local --- setup.py | 2 +- words_n_fun/preprocessing/basic.py | 7 ++++--- words_n_fun/utils.py | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/setup.py b/setup.py index 1472b9f..16316f0 100644 --- a/setup.py +++ b/setup.py @@ -23,7 +23,7 @@ version_path = os.path.join(package_directory, 'version.txt') with open(version_path, 'r') as version_file: version = version_file.read().strip() -version = os.getenv('VERSION') or f"{version}-local" +version = os.getenv('VERSION') or f"{version}+local" # Get package description readme_path = os.path.join(package_directory, 'README.md') diff --git a/words_n_fun/preprocessing/basic.py b/words_n_fun/preprocessing/basic.py index a9d2481..bf4d0c7 100644 --- a/words_n_fun/preprocessing/basic.py +++ b/words_n_fun/preprocessing/basic.py @@ -38,13 +38,14 @@ # - fix_text -> Fixes numerous inconsistencies within a text (via ftfy) -import logging -import unicodedata -from typing import List, Union + import ftfy +import logging +import unicodedata import numpy as np import pandas as pd +from typing import List, Union from nltk.stem.snowball import FrenchStemmer from words_n_fun import CustomTqdm as tqdm diff --git a/words_n_fun/utils.py b/words_n_fun/utils.py index 4aefc9e..227d0ed 100644 --- a/words_n_fun/utils.py +++ b/words_n_fun/utils.py @@ -666,7 +666,7 @@ def regroup_data_series(function: Callable, min_nb_data:int = 1000, prefix_text: min_nb_data (int): Minimum number of rows within the document required to apply this wrapper (default : 1000) prefix_text (str): Prefix to add max_percent_unique (float): value [0-1] percentage of unique values to perform reduction - for very quick functions min_percent_unique should be low to have a real speed up + for very quick functions max_percent_unique should be low to have a real speed up Returns: function: Decorated function '''