Skip to content

Commit

Permalink
[FIX] Updates local version naming convention (#22)
Browse files Browse the repository at this point in the history
* Minor changes

* -local to +local
  • Loading branch information
gsolard authored Sep 4, 2023
1 parent 17fd1aa commit cebf5c7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
7 changes: 4 additions & 3 deletions words_n_fun/preprocessing/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion words_n_fun/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
'''
Expand Down

0 comments on commit cebf5c7

Please sign in to comment.