1
0
Fork 0
mirror of https://github.com/qurator-spk/dinglehopper.git synced 2025-06-08 19:30:01 +02:00
Commit graph

397 commits

Author SHA1 Message Date
dea0c53f88 Merge branch 'rapidfuzz' 2021-10-22 18:19:58 +02:00
06ea38449c 📝 dinglehopper: Update Levenshtein notebook 2021-10-22 16:58:40 +02:00
3ee688001a 🧹 dinglehopper: Directly import levenshtein() from rapidfuzz 2021-10-22 16:30:21 +02:00
5d496df267 dinglehopper: Remove tests that only test rapidfuzz's levenshtein() 2021-10-22 16:26:55 +02:00
091f069b3c dinglehopper: Remove tests that only test rapidfuzz's levenshtein_ops() 2021-10-22 16:21:16 +02:00
af8da1d716 dinglehopper: Use rapidfuzz for editops 2021-10-22 15:38:59 +02:00
249787686f Merge branch 'master' of github.com:qurator-spk/dinglehopper
Some checks failed
continuous-integration/drone/push Build is failing
2021-05-20 09:42:15 +02:00
2a6cc5823e 🐛 dinglehopper: Call initLogging before logging
When using ocrd_utils' getLogger(), we need to call initLogging() before doing any
logging.

Fixes #55.
2021-05-20 09:39:09 +02:00
0b9af3a21e
Merge pull request #58 from kba/unorderedgroupindexed
All checks were successful
continuous-integration/drone/push Build is passing
ReadingOrder may also contain UnorderedGroupIndexed
2021-05-18 18:32:32 +02:00
Konstantin Baierer
7fde00d911 ReadingOrder may also contain UnorderedGroupIndexed 2021-05-18 17:34:08 +02:00
1778b36a9a 🚧 dinglehopper: Read PAGE UnorderedGroup in XML order 2021-04-15 21:09:45 +02:00
bd324331e6 🚧 dinglehopper: Try out Drone CI
All checks were successful
continuous-integration/drone/push Build is passing
2021-02-11 14:26:29 +01:00
a59ecb795c 🚧 dinglehopper: Try out Drone CI
Some checks failed
continuous-integration/drone/push Build is failing
2021-02-11 14:15:08 +01:00
14230e073a 🚧 dinglehopper: Try out Drone CI 2021-02-11 14:08:25 +01:00
985666a71c 🚧 dinglehopper: Try out Drone CI 2021-02-10 20:35:22 +01:00
4a73053cfc 🚧 Replace Travis with CircleCI 2021-02-10 18:22:52 +01:00
e3d4493c82 🚧 Replace Travis with CircleCI 2021-02-10 17:58:58 +01:00
27f4c3bdf8 🚧 Replace Travis with CircleCI 2021-02-10 17:57:08 +01:00
8533e6d421 🚧 Replace Travis with CircleCI 2021-02-10 17:55:09 +01:00
e8da8b63f8 🚧 Replace Travis with CircleCI 2021-02-10 17:53:50 +01:00
3b7a1a5631 🚧 Replace Travis with CircleCI 2021-02-10 17:50:34 +01:00
691ce371ca
Merge pull request #50 from b2m/fix-table-extraction
Fix the extraction of text from Page with TableRegion
2021-02-01 17:51:33 +01:00
Benjamin Rosemann
a68fc269d9 Fix the extraction of text from Page with TableRegion
Dinglehopper did not consider `OrderedGroupIndex` in the `ReadingOrder`
element when extracting text regions. As a consequence a `TableRegion`
was not considered for text extraction.
2020-11-27 11:18:11 +01:00
8cd8314c8a 🐛 dinglehopper: Bump up ocrd req for zip_input_files
See also GH-49.
2020-11-19 18:59:47 +01:00
62670dd0c7
Merge pull request #49 from kba/zip_input_files
ocrd cli: use core-provided zip_input_files method
2020-11-19 18:54:21 +01:00
Konstantin Baierer
74e0ac18ed ocrd cli: use core-provided zip_input_files method 2020-11-19 16:00:28 +01:00
389e253c11 🐛 dinglehopper: Fix alto_extract_lines()'s type annotation 2020-11-12 19:32:38 +01:00
fe3923a8af 🐛 dinglehopper: Fix alto_extract()'s type annotation 2020-11-12 19:19:05 +01:00
132f91d500 ✔️ dinglehopper: Add missing integration test markers 2020-11-12 19:10:23 +01:00
c48d7646df 📝 dinglehopper: README-DEV: Massage markdown a bit 2020-11-12 19:05:14 +01:00
fed021090d
Merge pull request #46 from b2m/tool-changes
Tool changes
2020-11-12 18:59:25 +01:00
Benjamin Rosemann
cb1ac9d260 Add black to developer requirements. 2020-11-11 11:36:17 +01:00
Benjamin Rosemann
03ad413f4a Added some helpful tools and configurations 2020-11-11 11:36:17 +01:00
Benjamin Rosemann
5cbd4f3d95 Preparation for black code formatter 2020-11-11 11:36:17 +01:00
Benjamin Rosemann
ce752e1912 Remove .idea folder and modify .gitignore
Sharing even parts of the .idea folder in worldwide setting is bound to
generate more problems than solutions. Therefore it should be removed
and consequently ignore in .gitignore.

Also adds some Python specific stuff to the .gitignore file.
2020-11-11 11:36:17 +01:00
Benjamin Rosemann
5270737c1f Skip test on windows because it is unix specific. 2020-11-11 11:36:17 +01:00
32a4b95a99 🐛 dinglehopper: Normalize in plain_extract() 2020-11-10 18:51:14 +01:00
14421c8e53 🎨 dinglehopper: Reformat using black 2020-11-10 12:29:55 +01:00
31c63f9e4c 🎨 dinglehopper: s/LOG/log 2020-11-09 16:55:43 +01:00
0804b029c4
Merge pull request #43 from bertsky/patch-1
1 more update for core's getLogger context
2020-11-09 16:51:00 +01:00
Robert Sachunsky
a60c14351e
1 more update for core's getLogger context 2020-11-03 17:46:59 +01:00
a51f0b3dcd
Merge pull request #42 from b2m/test-python-cache-for-travis
Add travis pip caching
2020-10-30 12:35:20 +01:00
Benjamin Rosemann
b10af9f138 Test travis pip caching 2020-10-29 16:41:19 +01:00
089f6d299e
Merge pull request #37 from b2m/fix-sort-with-none
Sort textlines with missing indices
2020-10-29 15:05:46 +01:00
5138a1de21
Merge pull request #39 from b2m/test-python-3.9
Add Python 3.9 to .travis.yml
2020-10-29 13:42:24 +01:00
Benjamin Rosemann
c02569b41e Fix f-strings for Python 3.5 2020-10-29 12:33:54 +01:00
Benjamin Rosemann
7b27b2834e More complex sorting for text extraction
When extracting text from TextEquiv nodes we may encounter nodes without
index or nodes that should get sorted via the conf attribute.

Therefore we added a more complex algorithm to extract a TextEquiv and
inform the user via log messages if we encounter structures that we can
handle but may produce unexpected results.
2020-10-29 10:03:40 +01:00
Benjamin Rosemann
6ff831dfd2 Sort textlines with missing indices
Python's `sorted` method will fail with a TypeError when called with
`None` and Integers:

```python
>>> sorted([None, 1])
TypeError: '<' not supported between instances of 'int' and 'NoneType'
```
Therefore we are using `float('inf')` instead of `None` in case of
missing textline indices.
2020-10-29 10:03:40 +01:00
Benjamin Rosemann
e77f19fefc Add Python 3.9 to .travis.yml 2020-10-29 10:02:51 +01:00
082fc9e09a
Merge pull request #38 from b2m/add-editorconfig
Add .editorconfig
2020-10-28 15:16:04 +01:00