Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge dev for release 0.9.6 #190

Merged
merged 222 commits into from
Mar 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
222 commits
Select commit Hold shift + click to select a range
fc6fdd0
merge python3_10 integration
davebulaval Jul 6, 2022
a4922ac
improve codecov script
davebulaval Jul 6, 2022
6f82c6e
improve codecov script with test verbosity
davebulaval Jul 6, 2022
0732c59
improve codecov script with test verbosity
davebulaval Jul 6, 2022
3f74aae
add script to run tests on all python version supported
davebulaval Jul 6, 2022
802793c
fix path management
davebulaval Jul 6, 2022
bee19af
change mod of executable file
davebulaval Jul 6, 2022
15f0908
add interactive shell to handle conda
davebulaval Jul 6, 2022
acaa54f
remove shebang arg
davebulaval Jul 6, 2022
6e2a809
fix contributing and minor typo in tests script
davebulaval Jul 6, 2022
b3f1b4b
improv example code and remove dead example
davebulaval Jul 8, 2022
ebaeeb0
squash handling from url branch
davebulaval Jul 8, 2022
df9651a
cleanup dead file
davebulaval Jul 8, 2022
1b9800b
improve speed test code
davebulaval Jul 8, 2022
38e6115
add num_workers test fasttext under windows os condition
davebulaval Jul 12, 2022
9154a1d
add tests case for num_workers test in parser
davebulaval Jul 12, 2022
a6b28fd
simplified tests case windows
davebulaval Jul 12, 2022
de55e63
update changelog
davebulaval Jul 12, 2022
6b24e0c
fix windows os failing test due to num workers gt 0
davebulaval Jul 12, 2022
b1748e9
fix missing lower cassing windows os name
davebulaval Jul 12, 2022
6051053
Merge branch 'master' into dev
davebulaval Jul 13, 2022
c0417e2
add missing downlaod_from_url deprecated message and redirect to new …
davebulaval Jul 13, 2022
3f92b05
add major release todo list to track function to remove
davebulaval Jul 13, 2022
ad6c8f0
update changelog
davebulaval Jul 13, 2022
9a4f6a8
add pragma no cover to skip codecovv
davebulaval Jul 13, 2022
d3c100e
Merge branch 'master' into dev
davebulaval Jul 13, 2022
958f456
Merge branch 'master' into dev
davebulaval Jul 13, 2022
ca51ceb
improve variable naming
davebulaval Jul 16, 2022
99b1d1c
refactor position of non protected method
davebulaval Jul 16, 2022
79b5513
bump pylint and add django for codacy
davebulaval Jul 26, 2022
3b4b821
fix deepparse tools pylint
davebulaval Jul 26, 2022
d20f51e
fix network pylint
davebulaval Jul 26, 2022
1aef169
fix vectorizer modules
davebulaval Jul 26, 2022
cd7909e
fix torch member and parser modules
davebulaval Jul 26, 2022
b3a018f
refactor arguments init in cli and cycling import
davebulaval Jul 26, 2022
d06cb9c
fix circular import
davebulaval Jul 26, 2022
d3c63be
fix last pylint errors
davebulaval Jul 26, 2022
50ad57d
fix error in csv column names versus column name
davebulaval Jul 26, 2022
69c8f1a
fix list csv column names missing nargs
davebulaval Jul 26, 2022
80bec06
remove duplicate detection and fix with statement for temporary direc…
davebulaval Jul 26, 2022
831b668
fix oylint on test
davebulaval Jul 26, 2022
164ff05
push to 0.8.1
davebulaval Jul 26, 2022
3876b0d
Merge branch 'master' into dev
davebulaval Jul 26, 2022
b218ef1
simplification skipif test testing
davebulaval Jul 26, 2022
259b7ac
bug fix issue 141
davebulaval Jul 27, 2022
889cec3
fix missing csv dataset in test for csv integration test
davebulaval Jul 27, 2022
e73f07d
merge improvement for error handling of retrain and test API
davebulaval Jul 27, 2022
e7f9fe5
merge master
davebulaval Jul 27, 2022
b79b3ee
linting yml file
davebulaval Jul 28, 2022
1dce60b
improve run all tests script
davebulaval Jul 28, 2022
48fe197
improve run tests python envs
davebulaval Jul 29, 2022
d3b5e69
fix naming of tests and some typos
davebulaval Aug 4, 2022
3c4ffde
add save_model_eights method (#147)
davebulaval Aug 4, 2022
6b7ff29
bumb actions version (checkout and setup-python
davebulaval Aug 5, 2022
b635cf0
fixed actions/checkout setted to 4 instead of 3
davebulaval Aug 5, 2022
77f2927
add dependabot
davebulaval Aug 5, 2022
e329471
bump stale to v5
davebulaval Aug 5, 2022
b4fb9a5
add python 3.11 in linting
davebulaval Aug 5, 2022
680ab19
remove python 3.11 since not supported for now and add 3.10 in window…
davebulaval Aug 5, 2022
ceb9eff
revert windoes python 3.10 since still fail
davebulaval Aug 5, 2022
b3d76a4
Add codeql (#148)
davebulaval Aug 5, 2022
abe5814
add deprecated warnings class type on deprecated download_from_url_fn
davebulaval Aug 10, 2022
7318093
refactored dataset containter creation into a factory
davebulaval Aug 10, 2022
bcdfe94
fix errors for parsing cases
davebulaval Aug 10, 2022
8578a9a
moved arguments in dataset factory
davebulaval Aug 10, 2022
aeb1559
add tests case for new factory tool fn
davebulaval Aug 10, 2022
2971fad
added val dataset handling
davebulaval Aug 10, 2022
9cc7201
fixed tests and remove major release todo
davebulaval Aug 10, 2022
639f35a
added cleaning conda env
davebulaval Aug 10, 2022
7c7211e
improved scirpt with warmup training
davebulaval Aug 10, 2022
bd59261
Merge branch 'dev' into improve_retrain_api
davebulaval Aug 10, 2022
9e5c71e
remove fine_tuning script since in branch
davebulaval Aug 10, 2022
64048e0
Merge branch 'dev' into improve_retrain_api
davebulaval Aug 10, 2022
6021e49
fixed tests
davebulaval Aug 10, 2022
dc3bfc3
fixed test without clear num_workers arg
davebulaval Aug 10, 2022
a936803
remove fn download_from_url
davebulaval Aug 11, 2022
76c2c22
removed unecessary retrain in test api tests
davebulaval Aug 11, 2022
d4e4928
added verbose for test and improved tests for retrain test integration
davebulaval Aug 11, 2022
b36765a
updated changelog
davebulaval Aug 11, 2022
caa616b
fixed missing hint typing, improved internal doc, fixed train_ratio a…
davebulaval Aug 12, 2022
e40dd4b
add pylint step on code examples
davebulaval Aug 12, 2022
01e3e08
added missing typing, uniformization of assertFileExist fn, added int…
davebulaval Aug 12, 2022
b3c9713
remove comment in linting ci to bug fix if failling problem
davebulaval Aug 12, 2022
a5bf182
fix dead verbose retrain api flag
davebulaval Aug 12, 2022
4983b3a
add ini option for django
davebulaval Aug 12, 2022
13ba1ac
remove linting of code example since fail due to pylint-django and I …
davebulaval Aug 12, 2022
3c968b6
fixed django settings
davebulaval Aug 12, 2022
73ccc94
add steps to install depparse for code examples linting
davebulaval Aug 12, 2022
4634523
remove install -e
davebulaval Aug 12, 2022
2fbb44b
reinstaller install -e .
davebulaval Aug 12, 2022
4c318c0
add skip=no-member since it is mostly flase positive
davebulaval Aug 12, 2022
61f7030
removed no-member pylint disable
davebulaval Aug 12, 2022
ad14e04
add docker image
davebulaval Aug 12, 2022
1a32a64
formating
davebulaval Aug 14, 2022
acc8aac
merge solved
davebulaval Aug 15, 2022
79d38d2
formated README
davebulaval Aug 15, 2022
1763fdb
update changelog
davebulaval Aug 19, 2022
18be17e
merge uk example and fixes to doc
davebulaval Aug 19, 2022
cc38ef7
hot-fix choices handling in cli.download
davebulaval Aug 19, 2022
9d4ed7e
merge master
davebulaval Aug 19, 2022
2b961a5
linting and security template mv
davebulaval Aug 21, 2022
288172e
improved deepparse server error handling
davebulaval Aug 21, 2022
f7ede49
merge offline parsing
davebulaval Aug 21, 2022
83fb9fc
fix typo in all test run
davebulaval Aug 21, 2022
1678c0e
fixed error in module name and refactored errors module
davebulaval Aug 22, 2022
72ccaae
fixed reference packaging other deepparse module
davebulaval Aug 22, 2022
10a4e77
added missing hint typing
davebulaval Aug 22, 2022
6fa8427
add missing urllib3 dependancies
davebulaval Aug 22, 2022
e13cc93
improve workflow
davebulaval Aug 22, 2022
ad226e1
improve doc
davebulaval Aug 22, 2022
18da9ec
add download_models, fix bug in cache path handling and fixed examples
davebulaval Aug 23, 2022
9bb818b
update changelog
davebulaval Aug 23, 2022
400129d
refactored test and add download_models tests
davebulaval Aug 23, 2022
3578f0d
merge refactoring of download cli fn
davebulaval Aug 23, 2022
448271e
moved code for licensing
davebulaval Aug 23, 2022
2514bac
fixed typo in doc
davebulaval Aug 23, 2022
79602ad
Update CHANGELOG.md
davebulaval Aug 24, 2022
7fc47be
Merge remote-tracking branch 'origin' into dev
davebulaval Sep 1, 2022
3ed2ff9
added factories and tests
MAYAS3 Sep 7, 2022
799e0cc
Merge branch 'dev' of https://github.com/GRAAL-Research/deepparse int…
MAYAS3 Sep 7, 2022
cbbb5f8
added offline argument to model factory
MAYAS3 Sep 8, 2022
40b9131
merged refactor_download_model
davebulaval Sep 9, 2022
9bb6922
added data padders & tests
MAYAS3 Sep 15, 2022
e0e8c49
Merge branch 'dev' of https://github.com/GRAAL-Research/deepparse int…
MAYAS3 Sep 15, 2022
6af6344
black formatting
MAYAS3 Sep 15, 2022
af93269
added data padder factory & tests
MAYAS3 Sep 15, 2022
7c6b1eb
added docstring & preparing to refactor padder
MAYAS3 Sep 19, 2022
335a0f2
refactored data padder to solve LSP issue
MAYAS3 Sep 19, 2022
4a01e38
refactored vectorizer factory & temporarily removed type hinting from…
MAYAS3 Sep 21, 2022
0d5be3e
adjusted docstring
MAYAS3 Sep 22, 2022
5acf589
Hotfix `SSLError` when downloading model weights of model type: `bpem…
ajndkr Sep 23, 2022
c9f0fde
moved context wrapper in bpemb embedding model
davebulaval Sep 23, 2022
bb1de73
removed unused as err
davebulaval Sep 23, 2022
a84e147
added pylint skip for broad except to hotfix code
davebulaval Sep 23, 2022
f5ec436
added pylint skip for broad except to hotfix code
davebulaval Sep 23, 2022
90bb512
bump version and changelog
davebulaval Sep 23, 2022
1c66b53
Merge branch 'master' into dev
davebulaval Sep 23, 2022
8196f4d
Merge branch 'main' into dev
davebulaval Sep 23, 2022
761b065
added DataPadder docstring
MAYAS3 Sep 23, 2022
d609cbb
applied refurb (#160)
davebulaval Oct 21, 2022
e5966dd
wip - added DataProcessor and tests
MAYAS3 Oct 21, 2022
d6dcf1f
tweaked process_for_training method
MAYAS3 Oct 26, 2022
802144f
finished DataProcessor and tests
MAYAS3 Oct 27, 2022
07bdf08
removed obsolete tests
MAYAS3 Oct 31, 2022
5a5e8be
added DataProcessor docstring
MAYAS3 Oct 31, 2022
98e79c1
Bump docker/metadata-action from 4.0.1 to 4.1.1 (#161)
dependabot[bot] Nov 1, 2022
c4c9077
Bump docker/login-action from 2.0.0 to 2.1.0 (#162)
dependabot[bot] Nov 1, 2022
ffdea56
Bump pylint from 2.15.3 to 2.15.5 (#163)
dependabot[bot] Nov 1, 2022
b0825e4
Bump docker/build-push-action from 3.1.1 to 3.2.0 (#164)
dependabot[bot] Nov 1, 2022
83c3188
Bump black from 22.8.0 to 22.10.0 (#165)
dependabot[bot] Nov 1, 2022
ba4af17
fix black dependancy pyproject.toml
davebulaval Nov 1, 2022
c4674d6
added DataProcessorFactory and tests
MAYAS3 Nov 9, 2022
4c909a7
fix error in arg train ratio example and added assert in deepparse.re…
davebulaval Nov 14, 2022
be484b2
added error handling for macos and improved windows for case of num_w…
davebulaval Nov 16, 2022
13d49d6
fixed failling test and improved test for test_api
davebulaval Nov 22, 2022
dd47380
fixed windows tests
davebulaval Nov 23, 2022
1b536f7
Update CHANGELOG.md
davebulaval Nov 23, 2022
6de6511
Feat/add new tags to retrain cli (#167)
davebulaval Nov 24, 2022
542a780
bump version and changelog
davebulaval Nov 24, 2022
78d02f5
Merge branch 'main' into dev
davebulaval Nov 24, 2022
522a1bc
fix typo in doc retrain CLI
davebulaval Nov 24, 2022
b0d57bd
fixed errors due to model naming conventions
MAYAS3 Jan 2, 2023
ec87131
added final docstring
MAYAS3 Jan 2, 2023
9b2af4f
fixed broken tests
MAYAS3 Jan 3, 2023
e558d8d
removed broken test patching
MAYAS3 Jan 3, 2023
cdd0ca4
cleaned-up parser after new changes integration
MAYAS3 Jan 4, 2023
52f4254
Merge branch 'main' of https://github.com/GRAAL-Research/deepparse in…
MAYAS3 Jan 4, 2023
eac2b5c
black formatting
MAYAS3 Jan 4, 2023
4b2e094
Merge branch 'main' of https://github.com/GRAAL-Research/deepparse in…
MAYAS3 Jan 4, 2023
2cb18d6
remove accidental unused import
MAYAS3 Jan 4, 2023
cf57f4f
fixed linting
MAYAS3 Jan 4, 2023
a349f03
black formatting
MAYAS3 Jan 4, 2023
1eec7d1
removed unnecessary args
MAYAS3 Jan 4, 2023
cc7f42c
patching factories in AddressParser tests to memory optimise
MAYAS3 Jan 5, 2023
131ea01
Merge branch 'dev' of https://github.com/GRAAL-Research/deepparse int…
MAYAS3 Jan 5, 2023
dbd524e
fixed brocken tests
MAYAS3 Jan 5, 2023
b626801
removed unused import
MAYAS3 Jan 5, 2023
f1dd9f7
fixed windows tests
MAYAS3 Jan 5, 2023
e0dbf40
fixed windows test
MAYAS3 Jan 5, 2023
d9b6f1f
removed unused modules after refactor
MAYAS3 Jan 5, 2023
62cc8fa
removed imports for removed modules
MAYAS3 Jan 5, 2023
2354204
add tensorboard dependancies in test/requirements since it make test …
davebulaval Jan 6, 2023
c085b9f
Update deepparse/parser/address_parser.py
MAYAS3 Jan 7, 2023
23353d3
added error handling to data processor factory
MAYAS3 Jan 7, 2023
a82c729
fixed linting
MAYAS3 Jan 7, 2023
7b3b13e
Update deepparse/converter/data_processor_factory.py
davebulaval Jan 7, 2023
40384da
fixed broken tests
MAYAS3 Jan 7, 2023
6c357d6
Merge branch 'refactor' of https://github.com/GRAAL-Research/deeppars…
MAYAS3 Jan 7, 2023
6ebef4d
fixed broken test
MAYAS3 Jan 7, 2023
d0514c8
Merge pull request #172 from GRAAL-Research/refactor
MAYAS3 Jan 7, 2023
d2548bb
Update CHANGELOG.md
davebulaval Jan 31, 2023
7e83d73
Bump docker/metadata-action from 4.1.1 to 4.3.0 (#173)
dependabot[bot] Feb 2, 2023
0a92d31
Bump pylint from 2.15.9 to 2.15.10 (#174)
dependabot[bot] Feb 2, 2023
8290245
Bump docker/build-push-action from 3.2.0 to 4.0.0 (#175)
dependabot[bot] Feb 2, 2023
2036d41
Bump black from 22.12.0 to 23.1.0 (#176)
dependabot[bot] Feb 2, 2023
c0c9d95
Merge branch 'main' into dev
davebulaval Feb 20, 2023
f4c4da7
bump version
davebulaval Feb 20, 2023
560f4de
black formatting
davebulaval Feb 20, 2023
5e38ec9
Merge branch 'main' into dev
davebulaval Feb 20, 2023
5c2e594
fixed missing update of tag converter in data processor
davebulaval Feb 23, 2023
7fa7d49
jupyter notebook formating
davebulaval Feb 23, 2023
2553496
fix typo in test
davebulaval Feb 23, 2023
1f5dc9c
bump version
davebulaval Feb 23, 2023
36876a1
Merge branch 'main' into dev
davebulaval Feb 23, 2023
0e44e97
improve documentation of codecov_push.sh
davebulaval Feb 23, 2023
cbffa0e
run docker ci monthly instead of weekly
davebulaval Mar 18, 2023
a347800
Bump pylint from 2.15.10 to 2.16.2 (#180)
dependabot[bot] Mar 18, 2023
7408fa2
Merge branch 'main' into dev
davebulaval Mar 18, 2023
3e66236
Merge branch 'dev' of github.com:GRAAL-Research/deepparse into dev
davebulaval Mar 18, 2023
184b008
add target to dev instead of main
davebulaval Mar 18, 2023
8bafe17
Python311 (#182)
davebulaval Mar 18, 2023
b9751d9
add missing with_hyphen_split argument in __call__
davebulaval Mar 21, 2023
43cac8f
Pre process address call argument (#183)
davebulaval Mar 21, 2023
e4baa2e
merge solved
davebulaval Mar 21, 2023
f7a0587
Various minor improvements (#185)
davebulaval Mar 27, 2023
f9f3eff
fix typo in doc
davebulaval Mar 27, 2023
67e901e
fix typo in doc
davebulaval Mar 27, 2023
817c8ea
drop python 3.7 (#187)
davebulaval Mar 27, 2023
d363f78
Bug fix retrain model loading (#188)
davebulaval Mar 30, 2023
bb9acf7
normalization of hint typing in doc
davebulaval Mar 30, 2023
cf52574
Lengths as list (#189)
davebulaval Mar 30, 2023
32dd5fd
bump version and changelog
davebulaval Mar 31, 2023
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
6 changes: 5 additions & 1 deletion .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,11 @@ If your pull request introduces a new feature, please deliver it with tests that
For any pull request submitted, **ALL** of the tests must succeed. You can run the tests with

``` shell
python -m unittest
pytest

# or with multiple CPU

pytest -n 4
```

> The integration tests need to be executed on a device with a GPU.
Expand Down
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,18 @@ updates:
directory: "/"
schedule:
interval: "monthly"
target-branch: "develop"
labels:
- "Github actions dependencies"

- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "monthly"
open-pull-requests-limit: 10
target-branch: "develop"
labels:
- "pip dependencies"
allow:
- dependency-type: direct
- dependency-type: indirect
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: "3.11"
- name: Install dependencies
run: |
pip install -Ur requirements.txt
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
release:
types: [ created ]
schedule:
# Run the tests at 00:00 each week on sunday
- cron: "0 0 * * 0"
# Run the tests at 00:00 the first day of each month
- cron: "0 0 1 * *"

jobs:
build:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ "3.7", "3.8", "3.9", "3.10" ]
python-version: [ "3.8", "3.9", "3.10", "3.11" ]

steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/formatting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ "3.7", "3.8", "3.9", "3.10" ]
python-version: [ "3.8", "3.9", "3.10", "3.11" ]

steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ "3.7", "3.8", "3.9", "3.10" ]
python-version: [ "3.8", "3.9", "3.10", "3.11" ]

steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ "3.7", "3.8", "3.9", "3.10" ]
python-version: [ "3.8", "3.9", "3.10", "3.11" ]

steps:
- uses: actions/checkout@v3
Expand All @@ -28,7 +28,7 @@ jobs:
runs-on: windows-latest
strategy:
matrix:
python-version: [ "3.7", "3.8", "3.9" ] # pip install requirements fail on 3.10
python-version: [ "3.8", "3.9" ] # pip install requirements fail on 3.10 and 3.11 because of Fasttext

steps:
- uses: actions/checkout@v3
Expand Down
6 changes: 3 additions & 3 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ persistent=yes

# Minimum Python version to use for version dependent checks. Will default to
# the version used to run pylint.
py-version=3.7
py-version=3.8

# When enabled, pylint would attempt to guess common misconfiguration and emit
# user-friendly hints instead of false-positive error messages.
Expand Down Expand Up @@ -573,5 +573,5 @@ valid-metaclass-classmethod-first-arg=cls

# Exceptions that will emit a warning when being caught. Defaults to
# "BaseException, Exception".
overgeneral-exceptions=BaseException,
Exception
overgeneral-exceptions=builtins.BaseException,
builtins.Exception
40 changes: 29 additions & 11 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,26 +273,44 @@

## 0.9.2

- Improve Deepparse server error handling and error output
- Improve Deepparse server error handling and error output.
- Remove deprecated argument `saving_dir` in `download_fasttext_magnitude_embeddings`
and `download_fasttext_embeddings` functions
- Add offline argument to remove verification of the latest version
- Bug-fix cache handling in download model
- Add `download_models` CLI function
- [Temporary hot-fix BPEmb SSL certificate error](https://github.com/GRAAL-Research/deepparse/issues/156)
and `download_fasttext_embeddings` functions.
- Add offline argument to remove verification of the latest version.
- Bug-fix cache handling in download model.
- Add `download_models` CLI function.
- [Temporary hot-fix BPEmb SSL certificate error](https://github.com/GRAAL-Research/deepparse/issues/156).

## 0.9.3

- Improve error handling.
- Bug-fix FastText error not handled in test API.
- Add feature to allow new_prediction_tags to retrain CLI.
- Improve error handling.
- Bug-fix FastText error not handled in test API.
- Add feature to allow new_prediction_tags to retrain CLI.

## 0.9.4

- Improve codebase.
- Improve codebase.

## 0.9.5

- Fixed tags converter bug with data processor.
- Fixed tags converter bug with data processor.

## 0.9.6

- Add Python 3.11.
- Add pre-processor when parsing addresses.
- Add `pin_memory=True` when using a CUDA device to increase performance as suggested
by [Torch documentation](https://pytorch.org/tutorials/recipes/recipes/tuning_guide.html).
- Add `torch.no_grad()` context manager in `__call__()` to increase performance.
- Reduce memory swap between CPU and GPU by instantiating Tensor directly on the GPU device.
- Improve some Warnings clarity (i.e. category and message).
- Bug-fix MacOS multiprocessing. It was impossible to use in multiprocess since we were not testing whether torch
multiprocess was set properly. Now, we set it properly and raise a warning instead of an error.
- Drop Python 3.7 support since newer Python versions are faster
and [Torch 2.0 does not support Python 3.7](https://dev-discuss.pytorch.org/t/dropping-support-for-cuda-11-6-and-python-3-7-from-pytorch-2-0-release/1021).
- Improve error handling with wrong checkpoint loading in AddressParser retrain_path use.
- Add `torch.compile` integration to improve performance (Torch 1.x still supported) with `mode="reduce-overhead"` as
suggested in the [documentation](https://pytorch.org/tutorials//intermediate/torch_compile_tutorial.html). It
increases the performance by about 1/100.

## dev
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Use deepparse to

Read the documentation at [deepparse.org](https://deepparse.org).

Deepparse is compatible with the __latest version of PyTorch__ and __Python >= 3.7__.
Deepparse is compatible with the __latest version of PyTorch__ and __Python >= 3.8__.

### Countries and Results

Expand Down
12 changes: 7 additions & 5 deletions codecov_push.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
#!/bin/sh
# To run using ZSH: zsh -i ./codecov_push.sh
# To run using bash: bash -i ./codecov_push.sh

# We do test on Python 3.10
# We do test on Python 3.11 (latest Python version)

# Create a new Python env for Deepparse tests and activate it
conda create --name deepparse_pytest_3_10 python=3.10 -y --force
conda activate deepparse_pytest_3_10
conda create --name deepparse_pytest_3_11 python=3.11 -y --force
conda activate deepparse_pytest_3_11

# Install dependencies
pip install -Ur tests/requirements.txt
Expand All @@ -13,12 +15,12 @@ pip install -Ur requirements.txt
# Run pytest from conda env
echo "*****Running test in Conda*****"
# --live-stream is to remove the Conda capture of the stream
conda run -n deepparse_pytest_3_10 --live-stream pytest --cov ./deepparse --cov-report html --cov-report xml --cov-config=.coveragerc
conda run -n deepparse_pytest_3_11 --live-stream pytest --cov ./deepparse --cov-report html --cov-report xml --cov-config=.coveragerc

# Push the coverage file
./codecov -f coverage.xml -n unittest-integrationtest -t $CODECOVKEYDEEPPARSE

# close conda env
conda deactivate

conda env remove -n deepparse_pytest_3_10
conda env remove -n deepparse_pytest_3_11
6 changes: 4 additions & 2 deletions deepparse/comparer/formatted_compared_addresses.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# pylint: disable=superfluous-parens

import os
import sys
from abc import ABC, abstractmethod
Expand Down Expand Up @@ -113,7 +115,7 @@ class because they don't use the probabilities the same way.
"""

@staticmethod
def _get_color_diff(string_one: str, string_two: str, highlight=False) -> str:
def _get_color_diff(string_one: str, string_two: str, highlight: bool = False) -> str:
"""
Compare two strings and determine the difference between the two. The differences are noted with colour code;
if the first string has more elements than the second one, it will be noted in one colour; on the contrary,
Expand Down Expand Up @@ -171,7 +173,7 @@ def _get_tags_diff_color(
self,
name_one: str = "first address",
name_two: str = "second address",
verbose=True,
verbose: bool = True,
) -> str:
"""
Print the output of the string with colour codes that represent the differences between the two strings.
Expand Down
Loading