dedupmarcxml 1.2.0__tar.gz → 1.2.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {dedupmarcxml-1.2.0 → dedupmarcxml-1.2.2}/PKG-INFO +1 -1
- dedupmarcxml-1.2.2/dedupmarcxml/data/randomforest_book_model.pickle +0 -0
- dedupmarcxml-1.2.2/dedupmarcxml/data/randomforest_general_model.pickle +0 -0
- dedupmarcxml-1.2.2/dedupmarcxml/data/randomforest_music_model.pickle +0 -0
- {dedupmarcxml-1.2.0 → dedupmarcxml-1.2.2}/dedupmarcxml/evaluate.py +2 -2
- dedupmarcxml-1.2.2/dedupmarcxml/version.py +2 -0
- {dedupmarcxml-1.2.0 → dedupmarcxml-1.2.2}/dedupmarcxml.egg-info/PKG-INFO +1 -1
- {dedupmarcxml-1.2.0 → dedupmarcxml-1.2.2}/pyproject.toml +1 -1
- dedupmarcxml-1.2.0/dedupmarcxml/data/randomforest_book_model.pickle +0 -0
- dedupmarcxml-1.2.0/dedupmarcxml/data/randomforest_general_model.pickle +0 -0
- dedupmarcxml-1.2.0/dedupmarcxml/data/randomforest_music_model.pickle +0 -0
- dedupmarcxml-1.2.0/dedupmarcxml/version.py +0 -2
- {dedupmarcxml-1.2.0 → dedupmarcxml-1.2.2}/dedupmarcxml/__init__.py +0 -0
- {dedupmarcxml-1.2.0 → dedupmarcxml-1.2.2}/dedupmarcxml/briefrecord.py +0 -0
- {dedupmarcxml-1.2.0 → dedupmarcxml-1.2.2}/dedupmarcxml/data/editions_data.pickle +0 -0
- {dedupmarcxml-1.2.0 → dedupmarcxml-1.2.2}/dedupmarcxml/data/mlp_classifier_book_model.pickle +0 -0
- {dedupmarcxml-1.2.0 → dedupmarcxml-1.2.2}/dedupmarcxml/data/publishers_data.pickle +0 -0
- {dedupmarcxml-1.2.0 → dedupmarcxml-1.2.2}/dedupmarcxml/score/__init__.py +0 -0
- {dedupmarcxml-1.2.0 → dedupmarcxml-1.2.2}/dedupmarcxml/score/editions.py +0 -0
- {dedupmarcxml-1.2.0 → dedupmarcxml-1.2.2}/dedupmarcxml/score/extent.py +0 -0
- {dedupmarcxml-1.2.0 → dedupmarcxml-1.2.2}/dedupmarcxml/score/methods.py +0 -0
- {dedupmarcxml-1.2.0 → dedupmarcxml-1.2.2}/dedupmarcxml/score/names.py +0 -0
- {dedupmarcxml-1.2.0 → dedupmarcxml-1.2.2}/dedupmarcxml/score/publishers.py +0 -0
- {dedupmarcxml-1.2.0 → dedupmarcxml-1.2.2}/dedupmarcxml/tools.py +0 -0
- {dedupmarcxml-1.2.0 → dedupmarcxml-1.2.2}/dedupmarcxml.egg-info/SOURCES.txt +0 -0
- {dedupmarcxml-1.2.0 → dedupmarcxml-1.2.2}/dedupmarcxml.egg-info/dependency_links.txt +0 -0
- {dedupmarcxml-1.2.0 → dedupmarcxml-1.2.2}/dedupmarcxml.egg-info/requires.txt +0 -0
- {dedupmarcxml-1.2.0 → dedupmarcxml-1.2.2}/dedupmarcxml.egg-info/top_level.txt +0 -0
- {dedupmarcxml-1.2.0 → dedupmarcxml-1.2.2}/license.txt +0 -0
- {dedupmarcxml-1.2.0 → dedupmarcxml-1.2.2}/readme.rst +0 -0
- {dedupmarcxml-1.2.0 → dedupmarcxml-1.2.2}/setup.cfg +0 -0
- {dedupmarcxml-1.2.0 → dedupmarcxml-1.2.2}/tests/test_briefrecord.py +0 -0
- {dedupmarcxml-1.2.0 → dedupmarcxml-1.2.2}/tests/test_score.py +0 -0
- {dedupmarcxml-1.2.0 → dedupmarcxml-1.2.2}/tests/test_score_editions.py +0 -0
- {dedupmarcxml-1.2.0 → dedupmarcxml-1.2.2}/tests/test_score_extent.py +0 -0
- {dedupmarcxml-1.2.0 → dedupmarcxml-1.2.2}/tests/test_score_names.py +0 -0
- {dedupmarcxml-1.2.0 → dedupmarcxml-1.2.2}/tests/test_score_publishers.py +0 -0
- {dedupmarcxml-1.2.0 → dedupmarcxml-1.2.2}/tests/test_tools.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dedupmarcxml
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.2
|
|
4
4
|
Summary: This python module is a tool to dedup MarcXML records.
|
|
5
5
|
Author-email: Raphaël Rey <raphael.rey@slsp.ch>
|
|
6
6
|
Project-URL: Homepage, https://github.com/Swiss-Library-Service-Platform/dedupmarcxml
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -325,7 +325,7 @@ def evaluate_parent(parent1: Dict, parent2: Dict) -> float:
|
|
|
325
325
|
if 'parts' in parent2 and 'nb' in parent2['parts'] and no in parent2['parts']['nb']:
|
|
326
326
|
score_no = 1
|
|
327
327
|
break
|
|
328
|
-
if score_no is None and parent2['parts']['nb'] > 1:
|
|
328
|
+
if score_no is None and 'parts' in parent2 and len(parent2['parts']['nb']) > 1:
|
|
329
329
|
score_no = 0
|
|
330
330
|
|
|
331
331
|
if score_no is None and 'number' in parent2:
|
|
@@ -341,7 +341,7 @@ def evaluate_parent(parent1: Dict, parent2: Dict) -> float:
|
|
|
341
341
|
# If there are more than one number in the parts field, we consider that it is enough
|
|
342
342
|
# to penalize the record if the number is not present in the other record because it means that
|
|
343
343
|
# the record has more than one part and the number is not present in the other record.
|
|
344
|
-
if score_no is None and parent1['parts']['nb'] > 1:
|
|
344
|
+
if score_no is None and 'parts' in parent1 and len(parent1['parts']['nb']) > 1:
|
|
345
345
|
score_no = 0
|
|
346
346
|
|
|
347
347
|
parent1 = deepcopy(parent1)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dedupmarcxml
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.2
|
|
4
4
|
Summary: This python module is a tool to dedup MarcXML records.
|
|
5
5
|
Author-email: Raphaël Rey <raphael.rey@slsp.ch>
|
|
6
6
|
Project-URL: Homepage, https://github.com/Swiss-Library-Service-Platform/dedupmarcxml
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dedupmarcxml-1.2.0 → dedupmarcxml-1.2.2}/dedupmarcxml/data/mlp_classifier_book_model.pickle
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|