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.
Files changed (38) hide show
  1. {dedupmarcxml-1.2.0 → dedupmarcxml-1.2.2}/PKG-INFO +1 -1
  2. dedupmarcxml-1.2.2/dedupmarcxml/data/randomforest_book_model.pickle +0 -0
  3. dedupmarcxml-1.2.2/dedupmarcxml/data/randomforest_general_model.pickle +0 -0
  4. dedupmarcxml-1.2.2/dedupmarcxml/data/randomforest_music_model.pickle +0 -0
  5. {dedupmarcxml-1.2.0 → dedupmarcxml-1.2.2}/dedupmarcxml/evaluate.py +2 -2
  6. dedupmarcxml-1.2.2/dedupmarcxml/version.py +2 -0
  7. {dedupmarcxml-1.2.0 → dedupmarcxml-1.2.2}/dedupmarcxml.egg-info/PKG-INFO +1 -1
  8. {dedupmarcxml-1.2.0 → dedupmarcxml-1.2.2}/pyproject.toml +1 -1
  9. dedupmarcxml-1.2.0/dedupmarcxml/data/randomforest_book_model.pickle +0 -0
  10. dedupmarcxml-1.2.0/dedupmarcxml/data/randomforest_general_model.pickle +0 -0
  11. dedupmarcxml-1.2.0/dedupmarcxml/data/randomforest_music_model.pickle +0 -0
  12. dedupmarcxml-1.2.0/dedupmarcxml/version.py +0 -2
  13. {dedupmarcxml-1.2.0 → dedupmarcxml-1.2.2}/dedupmarcxml/__init__.py +0 -0
  14. {dedupmarcxml-1.2.0 → dedupmarcxml-1.2.2}/dedupmarcxml/briefrecord.py +0 -0
  15. {dedupmarcxml-1.2.0 → dedupmarcxml-1.2.2}/dedupmarcxml/data/editions_data.pickle +0 -0
  16. {dedupmarcxml-1.2.0 → dedupmarcxml-1.2.2}/dedupmarcxml/data/mlp_classifier_book_model.pickle +0 -0
  17. {dedupmarcxml-1.2.0 → dedupmarcxml-1.2.2}/dedupmarcxml/data/publishers_data.pickle +0 -0
  18. {dedupmarcxml-1.2.0 → dedupmarcxml-1.2.2}/dedupmarcxml/score/__init__.py +0 -0
  19. {dedupmarcxml-1.2.0 → dedupmarcxml-1.2.2}/dedupmarcxml/score/editions.py +0 -0
  20. {dedupmarcxml-1.2.0 → dedupmarcxml-1.2.2}/dedupmarcxml/score/extent.py +0 -0
  21. {dedupmarcxml-1.2.0 → dedupmarcxml-1.2.2}/dedupmarcxml/score/methods.py +0 -0
  22. {dedupmarcxml-1.2.0 → dedupmarcxml-1.2.2}/dedupmarcxml/score/names.py +0 -0
  23. {dedupmarcxml-1.2.0 → dedupmarcxml-1.2.2}/dedupmarcxml/score/publishers.py +0 -0
  24. {dedupmarcxml-1.2.0 → dedupmarcxml-1.2.2}/dedupmarcxml/tools.py +0 -0
  25. {dedupmarcxml-1.2.0 → dedupmarcxml-1.2.2}/dedupmarcxml.egg-info/SOURCES.txt +0 -0
  26. {dedupmarcxml-1.2.0 → dedupmarcxml-1.2.2}/dedupmarcxml.egg-info/dependency_links.txt +0 -0
  27. {dedupmarcxml-1.2.0 → dedupmarcxml-1.2.2}/dedupmarcxml.egg-info/requires.txt +0 -0
  28. {dedupmarcxml-1.2.0 → dedupmarcxml-1.2.2}/dedupmarcxml.egg-info/top_level.txt +0 -0
  29. {dedupmarcxml-1.2.0 → dedupmarcxml-1.2.2}/license.txt +0 -0
  30. {dedupmarcxml-1.2.0 → dedupmarcxml-1.2.2}/readme.rst +0 -0
  31. {dedupmarcxml-1.2.0 → dedupmarcxml-1.2.2}/setup.cfg +0 -0
  32. {dedupmarcxml-1.2.0 → dedupmarcxml-1.2.2}/tests/test_briefrecord.py +0 -0
  33. {dedupmarcxml-1.2.0 → dedupmarcxml-1.2.2}/tests/test_score.py +0 -0
  34. {dedupmarcxml-1.2.0 → dedupmarcxml-1.2.2}/tests/test_score_editions.py +0 -0
  35. {dedupmarcxml-1.2.0 → dedupmarcxml-1.2.2}/tests/test_score_extent.py +0 -0
  36. {dedupmarcxml-1.2.0 → dedupmarcxml-1.2.2}/tests/test_score_names.py +0 -0
  37. {dedupmarcxml-1.2.0 → dedupmarcxml-1.2.2}/tests/test_score_publishers.py +0 -0
  38. {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.0
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
@@ -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)
@@ -0,0 +1,2 @@
1
+ __version__ = '1.2.2'
2
+ commit_message = f'install new models with new parents evaluation method'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dedupmarcxml
3
- Version: 1.2.0
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
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "dedupmarcxml"
3
- version = "1.2.0"
3
+ version = "1.2.2"
4
4
  authors = [
5
5
  {name="Raphaël Rey", email="raphael.rey@slsp.ch" },
6
6
  ]
@@ -1,2 +0,0 @@
1
- __version__ = '1.2.0'
2
- commit_message = f'Improve parents evaluation method and add more tests'
File without changes
File without changes
File without changes