{"id":17166689,"url":"https://github.com/willf/lacuna-metric","last_synced_at":"2025-03-24T18:15:42.697Z","repository":{"id":236344530,"uuid":"792415976","full_name":"willf/lacuna-metric","owner":"willf","description":"Evaluation data files and code for text restoration (lacuna-filling) tasks","archived":false,"fork":false,"pushed_at":"2024-05-15T18:21:33.000Z","size":6350,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T12:52:25.404Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/willf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-26T16:13:14.000Z","updated_at":"2024-05-15T18:21:37.000Z","dependencies_parsed_at":"2025-01-29T22:42:07.914Z","dependency_job_id":"5cfe0ace-1d02-4c48-969d-439a7370f72a","html_url":"https://github.com/willf/lacuna-metric","commit_stats":null,"previous_names":["willf/lacuna-metric"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willf%2Flacuna-metric","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willf%2Flacuna-metric/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willf%2Flacuna-metric/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willf%2Flacuna-metric/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/willf","download_url":"https://codeload.github.com/willf/lacuna-metric/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245325221,"owners_count":20596818,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T23:06:24.676Z","updated_at":"2025-03-24T18:15:42.676Z","avatar_url":"https://github.com/willf.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lacuna Metric\n\nExample: https://papyri.info/ddbdp/aegyptus;89;240 (also in data directory)\n\nData is sourced from https://github.com/papyri/idp.data\n\nGoal: Convert `\u003cab\u003e` elements; anonymous blocks\n\nIn the idp.data directory, there are around 950k `ab` tags.\n\nHere are the child elements of `ab` elements found in the data:\n\n| Tag                                                                                    | Count   | How to Process                                                                                                       |\n|----------------------------------------------------------------------------------------|---------|----------------------------------------------------------------------------------------------------------------------|\n| [`abbr`](https://www.tei-c.org/release/doc/tei-p5-doc/en/html/ref-abbr.html)           | 33568   | Supply the abbreviation in the context; only eval on abbreviation in context                                         |\n| [`add`](https://www.tei-c.org/release/doc/tei-p5-doc/en/html/ref-add.html)             | 17961   | provide for context; do not consider for evaluation                                                                  |\n| [`app`](https://www.tei-c.org/release/doc/tei-p5-doc/en/html/ref-app.html)             | 39261   | type=\"alternative\" -- 'any' of the lem or rdg (readings). Note you'll have to deal with reading groups.              |\n| [`certainty`](https://www.tei-c.org/release/doc/tei-p5-doc/en/html/ref-certainty.html) | 54      | drop                                                                                                                 |\n| [`choice`](https://www.tei-c.org/release/doc/tei-p5-doc/en/html/ref-choice.html)       | 159345  | Use the `orig` version in context. Are there cases where this shows up inside `supplied` text? Use the `orig` text.  |\n| [`del`](https://www.tei-c.org/release/doc/tei-p5-doc/en/html/ref-del.html)             | 12718   | provide for context; do not consider for evaluation                                                                  |\n| [`expan`](https://www.tei-c.org/release/doc/tei-p5-doc/en/html/ref-expan.html)         | 779351  | Use the 'original' text.                                                                                             |\n| [`figure`](https://www.tei-c.org/release/doc/tei-p5-doc/en/html/ref-figure.html)       | 594     | drop                                                                                                                 |\n| [`foreign`](https://www.tei-c.org/release/doc/tei-p5-doc/en/html/ref-foreign.html)     | 4121    | provide text only                                                                                                    |\n| [`g`](https://www.tei-c.org/release/doc/tei-p5-doc/en/html/ref-g.html)                 | 71996   | Most likely just ignore all `g`. Might want to                                                                       |\n| [`gap`](https://www.tei-c.org/release/doc/tei-p5-doc/en/html/ref-gap.html)             | 756277  | supply the gap 'as is', except move all gaps outside any `supplied` element                                          |\n| [`handShift`](https://www.tei-c.org/release/doc/tei-p5-doc/en/html/ref-handShift.html) | 22287   | ignore                                                                                                               |\n| [`hi`](https://www.tei-c.org/release/doc/tei-p5-doc/en/html/ref-hi.html)               | 38240   | Worth investigating some more, probably just use the text.                                                           |\n| [`lb`](https://www.tei-c.org/release/doc/tei-p5-doc/en/html/ref-lb.html)               | 1071351 | Might see [paragraphoi](https://en.wikipedia.org/wiki/Paragraphos). Just use a \\n                                    |\n| [`milestone`](https://www.tei-c.org/release/doc/tei-p5-doc/en/html/ref-milestone.html) | 8036    | provide for context                                                                                                  |\n| [`note`](https://www.tei-c.org/release/doc/tei-p5-doc/en/html/ref-note.html)           | 2849    | drop                                                                                                                 |\n| [`num`](https://www.tei-c.org/release/doc/tei-p5-doc/en/html/ref-num.html)             | 531081  | Give the text                                                                                                        |\n| [`orig`](https://www.tei-c.org/release/doc/tei-p5-doc/en/html/ref-orig.html)           | 4048    | when is this used at the top level? But probably just the text                                                       |\n| [`q`](https://www.tei-c.org/release/doc/tei-p5-doc/en/html/ref-q.html)                 | 2886    | text only                                                                                                            |\n| [`seg`](https://www.tei-c.org/release/doc/tei-p5-doc/en/html/ref-seg.html)             | 316     | use content                                                                                                          |\n| [`sic`](https://www.tei-c.org/release/doc/tei-p5-doc/en/html/ref-sic.html)             | 4       | keep                                                                                                                 |\n| [`space`](https://www.tei-c.org/release/doc/tei-p5-doc/en/html/ref-space.html)         | 14592   | provide for context; do not consider for evaluation                                                                  |\n| [`subst`](https://www.tei-c.org/release/doc/tei-p5-doc/en/html/ref-subst.html)         | 9856    | provide for context; do not consider for evaluation                                                                  |\n| [`supplied`](https://www.tei-c.org/release/doc/tei-p5-doc/en/html/ref-supplied.html)   | 616540  | This is what is being supplied. Look for `app` blocks. Note that not all alternative readings are actually supplied. |\n| [`surplus`](https://www.tei-c.org/release/doc/tei-p5-doc/en/html/ref-surplus.html)     | 3987    | keep text all                                                                                                             |\n| [`unclear`](https://www.tei-c.org/release/doc/tei-p5-doc/en/html/ref-unclear.html)     | 586518  | Give the text                                                                                                        |\n\n## Analysis by corpus, language, support material\n\n## Number of ab blocks\n\n| Corpus    |  Count  |\n|-----------|---------|\n| DDbDP     |  85,628 |\n| EDH       |  80,793 |\n| DCLP      |  11,581 |\n| **TOTAL** | 952,002 |\n\n## Language\n\n| Language | Count |\n|----------|-------|\n| grc      | 94374 |\n| la       | 81326 |\n| cop      | 2300  |\n\n## Corpus + Language\n\n| Corpus | Language | Count |\n|--------|----------|-------|\n| DDbDP  | grc      | 80895 |\n| EDH    | la       | 78586 |\n| DCLP   | grc      | 11272 |\n| DDbDP  | la       | 2459  |\n| DDbDP  | cop      | 2272  |\n| EDH    | grc      | 2207  |\n| DCLP   | la       | 281   |\n| DCLP   | cop      | 28    |\n\n## Material (10 or more)\n\n| Material                        | Count |\n|---------------------------------|-------|\n| papyrus                         | 69591 |\n| unknown                         | 46962 |\n| ostrakon                        | 20600 |\n| kalkstein                       | 10591 |\n| sandstein                       | 6294  |\n| marmor                          | 3930  |\n| gesteine                        | 3849  |\n| holz                            | 3798  |\n| ton                             | 3363  |\n| bronze                          | 1665  |\n| marmor, weiß                    | 1227  |\n| blei                            | 776   |\n| marmor, geädert / farbig        | 590   |\n| stone                           | 482   |\n| pergament                       | 392   |\n| silber                          | 286   |\n| parchment                       | 284   |\n| tuff                            | 202   |\n| pottery                         | 190   |\n| gesteine unbestimmt             | 167   |\n| granit                          | 160   |\n| gold                            | 115   |\n| travertin                       | 113   |\n| oolith                          | 107   |\n| wood                            | 104   |\n| holz (?)                        | 103   |\n| schiefer                        | 97    |\n| muschelkalk                     | 97    |\n| wachstafel                      | 87    |\n| steatit                         | 83    |\n| glas                            | 81    |\n| trachyt                         | 76    |\n| leinen                          | 76    |\n| konglomerat                     | 70    |\n| basalt                          | 61    |\n| speckstein                      | 55    |\n| ostracon (poterie)              | 53    |\n| kupfer                          | 52    |\n| holztafel                       | 52    |\n| putz                            | 51    |\n| leder                           | 48    |\n| eisen                           | 44    |\n| knochen                         | 42    |\n| vulkantuff                      | 35    |\n| gesteine?                       | 34    |\n| bronze, silber                  | 31    |\n| kalkstein?                      | 29    |\n| andesit                         | 28    |\n| kalkmergel / mergel             | 27    |\n| marmor?                         | 26    |\n| metalle                         | 23    |\n| lead                            | 23    |\n| graffito                        | 23    |\n| jaspis                          | 22    |\n| sandstein?                      | 20    |\n| zinn                            | 19    |\n| silber, gold                    | 18    |\n| karneol                         | 18    |\n| gneis                           | 17    |\n| marmor (farbe unbestimmt)       | 15    |\n| onyx                            | 14    |\n| wood: painted white             | 13    |\n| paper                           | 13    |\n| messing                         | 13    |\n| kalktuff                        | 13    |\n| elfenbein                       | 13    |\n| quarzit                         | 12    |\n| holz, wachs                     | 12    |\n| 1                               | 12    |\n| mumienleinwand                  | 10    |\n| gips                            | 10    |\n| bronze?                         | 10    |\n\n## Corpus + Material (ten or more instances)\n\n| Corpus | Material                        | Count |\n|--------|----------------------------------|-------|\n| DDbDP  | papyrus                         | 59187 |\n| EDH    | unknown                         | 45397 |\n| DDbDP  | ostrakon                        | 20600 |\n| EDH    | kalkstein                       | 10585 |\n| DCLP   | papyrus                         | 10404 |\n| EDH    | sandstein                       | 6294  |\n| EDH    | marmor                          | 3930  |\n| EDH    | gesteine                        | 3849  |\n| EDH    | ton                             | 3336  |\n| DDbDP  | holz                            | 3305  |\n| EDH    | bronze                          | 1663  |\n| DDbDP  | unknown                         | 1561  |\n| EDH    | marmor, weiß                    | 1227  |\n| EDH    | blei                            | 775   |\n| EDH    | marmor, geädert / farbig        | 590   |\n| EDH    | holz                            | 493   |\n| DCLP   | stone                           | 482   |\n| DDbDP  | pergament                       | 392   |\n| EDH    | silber                          | 285   |\n| DCLP   | parchment                       | 284   |\n| EDH    | tuff                            | 202   |\n| DCLP   | pottery                         | 189   |\n| EDH    | gesteine unbestimmt             | 167   |\n| EDH    | granit                          | 160   |\n| EDH    | gold                            | 115   |\n| EDH    | travertin                       | 113   |\n| EDH    | oolith                          | 107   |\n| DCLP   | wood                            | 104   |\n| DDbDP  | holz (?)                        | 103   |\n| EDH    | schiefer                        | 97    |\n| EDH    | muschelkalk                     | 97    |\n| DDbDP  | wachstafel                      | 87    |\n| EDH    | steatit                         | 82    |\n| EDH    | glas                            | 81    |\n| EDH    | trachyt                         | 76    |\n| DDbDP  | leinen                          | 76    |\n| EDH    | konglomerat                     | 70    |\n| EDH    | basalt                          | 61    |\n| EDH    | speckstein                      | 55    |\n| DDbDP  | ostracon (poterie)              | 53    |\n| EDH    | kupfer                          | 52    |\n| DDbDP  | holztafel                       | 52    |\n| EDH    | putz                            | 51    |\n| EDH    | eisen                           | 43    |\n| EDH    | vulkantuff                      | 35    |\n| EDH    | knochen                         | 34    |\n| EDH    | gesteine?                       | 34    |\n| EDH    | bronze, silber                  | 31    |\n| EDH    | leder                           | 29    |\n| EDH    | kalkstein?                      | 29    |\n| EDH    | andesit                         | 28    |\n| EDH    | kalkmergel / mergel             | 27    |\n| DDbDP  | ton                             | 27    |\n| EDH    | marmor?                         | 26    |\n| EDH    | metalle                         | 23    |\n| DDbDP  | graffito                        | 23    |\n| DCLP   | lead                            | 23    |\n| EDH    | jaspis                          | 22    |\n| EDH    | sandstein?                      | 20    |\n| EDH    | zinn                            | 19    |\n| DDbDP  | leder                           | 19    |\n| EDH    | silber, gold                    | 18    |\n| EDH    | karneol                         | 18    |\n| EDH    | gneis                           | 17    |\n| EDH    | marmor (farbe unbestimmt)       | 15    |\n| EDH    | onyx                            | 14    |\n| EDH    | messing                         | 13    |\n| EDH    | kalktuff                        | 13    |\n| EDH    | elfenbein                       | 13    |\n| DCLP   | wood: painted white             | 13    |\n| DCLP   | paper                           | 13    |\n| EDH    | quarzit                         | 12    |\n| EDH    | holz, wachs                     | 12    |\n| DCLP   | 1                               | 12    |\n| EDH    | bronze?                         | 10    |\n| DDbDP  | mumienleinwand                  | 10    |\n| DDbDP  | gips                            | 10    |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillf%2Flacuna-metric","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwillf%2Flacuna-metric","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillf%2Flacuna-metric/lists"}