Code Monkey home page Code Monkey logo

imtvault-legacy's Introduction

CLDF Datasets

imtvault-legacy's People

Contributors

glottotopia avatar xrotwang avatar

Watchers

 avatar  avatar  avatar

Forkers

xrotwang

imtvault-legacy's Issues

superseded books are included in example extraction

Wouldn't it be better to only extract examples from the latest version of superseded books. Right now, e.g. book 25 is indexed as well:

$ la extracted_examples/ | grep store-25-
store-25-1-begriffeexamples.json
store-25-2-psgexamples.json
store-25-3-gbexamples.json
store-25-3-minimalismexamples.json
store-25-4-gpsgexamples.json
store-25-5-merkmalstrukturenexamples.json
store-25-6-lfgexamples.json
store-25-7-cgexamples.json
store-25-8-hpsgexamples.json
store-25-9-cxgexamples.json
store-25-acquisitionexamples.json
store-25-branchingexamples.json
store-25-competenceexamples.json
store-25-coregramexamples.json
store-25-dgexamples.json
store-25-emptyexamples.json
store-25-innatenessexamples.json
store-25-localityexamples.json
store-25-loesungenexamples.json
store-25-movementexamples.json
store-25-mtsexamples.json
store-25-phrasalexamples.json
store-25-potential-structureexamples.json
store-25-recursionexamples.json
store-25-tagexamples.json

Many (near)duplicate records in the JSON files

There are many (535, based on ID) near-duplicates in the JSON data in extracted_examples, e.g.
https://github.com/langsci/imtvault/blob/a5000d9da6ca27cd1d34655bd283498a4276fbb7/extracted_examples/store-78-06examples.json#L2-L23
and
https://github.com/langsci/imtvault/blob/a5000d9da6ca27cd1d34655bd283498a4276fbb7/extracted_examples/store-78-06examples.json#L118-L139
(The only difference in this case being the footnote content added in one translation.)

DIfferent JSON formats in extracted_examples

The JSON files in extracted_examples now have two different formats. Some are lists of objects, others are dictionaries, e.g. extracted_examples/store-144-20examples.json

{
    "20--15872": {
        "ID": "20--15872",
        "bookID": 144,
        "book_URL": "https://langsci-press.org/catalog/book/144",
        "book_title": "Superseded: Analyzing meaning",
        "categories": [
            "ps"
        ],

Also, some have a key bookID others book_ID. Maybe the files associated with superseded books need to be removed?

Do LSP books use standard markup for a list of gloss abbreviations?

If so, it may be worthwhile trying to parse this as well. The LGR have this semi-standard way of including definitions of abbreviations as comma-separated key-value-pairs listed after the translation, so the relevant definitions could be included in individual examples.

This may be particularly useful in cases where LGT standard abbreviations have been re-defined in a book.

Translations for multi-line examples parsed incorrectly

E.g.
https://github.com/langsci/283/blob/8e4ed786627c6efa285ba1377edf12952dad5ac3/chapters/schiattarella.tex#L246-L253
The translation for all lines of the example is given in the last \glt line.
The first line ends up getting parsed as

    {
        "ID": "schiattarella--76587",
        "bookID": 283,
        "book_title": "Nominal anchoring",
        ...
        "imtwordsbare": [
            "girl.{PL.F}",
            "{3SG.F}-cover.{PFV-PRAGM}",
            "/"
        ],
        "srcwordsbare": [
            "{təččíwen}",
            "tə-ṛṭá-ya",
            "/"
        ],
        "trs": "\\exi",
        "wlength": 3
    },

check the following CSS classes

Most of these are misparsing


bf
bfemph
blue
color
color[rgb]
cyrillic
doublegrave
emph
emphat
emphat.\\sbj
emphu
glossblock
greek
ipa
ipaäc’ru\\textipa
ipaäc’-si-\\textbf
ipaäk'iru\\textipa
ipaäkru\\textipa
it
itbf
it<span class=bf
md
nobf
normal
periodcentered}k\\'
red
rm
sc-
sc.
sc
sc-2\\textsc
scb\\textsc
sc(prox)-\\textsc
sf 
styleChBlueBold
styleChSmallCaps
stylePichiexamplenumberZchnZchn
stylePichiglossZchn
subbridge
subdot
subring
subscript
superscript

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.