cldf-datasets / imtvault-legacy Goto Github PK
View Code? Open in Web Editor NEWExamples with interlinear morpheme translation from LangSci books
License: Creative Commons Attribution 4.0 International
Examples with interlinear morpheme translation from LangSci books
License: Creative Commons Attribution 4.0 International
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
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.)
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?
CLDF examples can specify the meta language explicitly. So if we knew that's always English, we could make this clear.
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.
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
},
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.