Skip to content

Commit

Permalink
Clean code, update source CSV
Browse files Browse the repository at this point in the history
  • Loading branch information
chrzyki committed Aug 8, 2024
1 parent 10b34e6 commit 1d01969
Show file tree
Hide file tree
Showing 7 changed files with 1,225 additions and 1,231 deletions.
2 changes: 1 addition & 1 deletion cldf/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ property | value
[dc:format](http://purl.org/dc/terms/format) | <ol><li>http://concepticon.clld.org/contributions/Yang-2011-1014</li></ol>
[dc:license](http://purl.org/dc/terms/license) | https://creativecommons.org/licenses/by/4.0/
[dcat:accessURL](http://www.w3.org/ns/dcat#accessURL) | https://github.com/lexibank/yanglalo
[prov:wasDerivedFrom](http://www.w3.org/ns/prov#wasDerivedFrom) | <ol><li><a href="https://github.com/lexibank/yanglalo/tree/47827ed">lexibank/yanglalo v3.0-2-g47827ed</a></li><li><a href="https://github.com/glottolog/glottolog/tree/113434830e">Glottolog v5.0-18-g113434830e</a></li><li><a href="https://github.com/concepticon/concepticon-data/tree/81accb2e">Concepticon v3.2.0-17-g81accb2e</a></li><li><a href="https://github.com/cldf-clts/clts/tree/v2.3.0">CLTS v2.3.0</a></li></ol>
[prov:wasDerivedFrom](http://www.w3.org/ns/prov#wasDerivedFrom) | <ol><li><a href="https://github.com/lexibank/yanglalo/tree/10b34e6">lexibank/yanglalo v3.0-3-g10b34e6</a></li><li><a href="https://github.com/glottolog/glottolog/tree/v5.0">Glottolog v5.0</a></li><li><a href="https://github.com/concepticon/concepticon-data/tree/v3.2.0">Concepticon v3.2.0</a></li><li><a href="https://github.com/cldf-clts/clts/tree/v2.3.0">CLTS v2.3.0</a></li></ol>
[prov:wasGeneratedBy](http://www.w3.org/ns/prov#wasGeneratedBy) | <ol><li><strong>lingpy-rcParams</strong>: <a href="./lingpy-rcParams.json">lingpy-rcParams.json</a></li><li><strong>python</strong>: 3.12.4</li><li><strong>python-packages</strong>: <a href="./requirements.txt">requirements.txt</a></li></ol>
[rdf:ID](http://www.w3.org/1999/02/22-rdf-syntax-ns#ID) | yanglalo
[rdf:type](http://www.w3.org/1999/02/22-rdf-syntax-ns#type) | http://www.w3.org/ns/dcat#Distribution
Expand Down
6 changes: 3 additions & 3 deletions cldf/cldf-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@
{
"rdf:about": "https://github.com/lexibank/yanglalo",
"rdf:type": "prov:Entity",
"dc:created": "v3.0-2-g47827ed",
"dc:created": "v3.0-3-g10b34e6",
"dc:title": "Repository"
},
{
"rdf:about": "https://github.com/glottolog/glottolog",
"rdf:type": "prov:Entity",
"dc:created": "v5.0-18-g113434830e",
"dc:created": "v5.0",
"dc:title": "Glottolog"
},
{
"rdf:about": "https://github.com/concepticon/concepticon-data",
"rdf:type": "prov:Entity",
"dc:created": "v3.2.0-17-g81accb2e",
"dc:created": "v3.2.0",
"dc:title": "Concepticon"
},
{
Expand Down
4 changes: 2 additions & 2 deletions cldf/lingpy-rcParams.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
10,
10
],
"filename": "lingpy-2024-08-05",
"filename": "lingpy-2024-08-08",
"gap_symbol": "-",
"gap_weight": 0.5,
"gop": -2,
Expand Down Expand Up @@ -123,7 +123,7 @@
"scorer": {},
"sonar": true,
"stress": "\u02c8\u02cc'",
"timestamp": "2024-08-05 14:55",
"timestamp": "2024-08-08 10:55",
"tones": "\u00b9\u00b2\u00b3\u2074\u2075\u2076\u2077\u2078\u2079\u2070\u2081\u2082\u2083\u2084\u2085\u2086\u2087\u2088\u2089\u20800123456789\u02e5\u02e6\u02e7\u02e8\u02e9\u02ea\u02eb-\ua708-\ua709-\ua70a-\ua70b-\ua70c-\ua70d-\ua70e-\ua70f-\ua710-\ua711-\ua712-\ua713-\ua714-\ua715-\ua716-\ua717-\ua718-\ua719-\ua71a-\ua700-\ua701-\ua702-\ua703-\ua704-\ua705-\ua706-\ua707",
"tree_calc": "neighbor",
"unique_sequences": true,
Expand Down
4 changes: 2 additions & 2 deletions etc/languages.tsv
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
"ID" "Source_ID" "Name" "Glottocode" "Location"
"ProtoLalo" PLa "Proto-Lalo"
"ProtoLalo" "PLa" "Proto-Lalo"
"Qingyun" "CW-QY" "Qingyun" "xish1235" "Dali Prefecture, Weishan County, Ma'anshan, Qingyun"
"Shuizhuping" "W-SZP" "Shuizhuping" "west1506" "Dali Prefecture, Yangbi County, Longtan, Shuizhuping"
"Diaocao" "E-DC" "Diaocao" "dong1286" "Dali Prefecture, Dali Municipality, Shijiao qu Diaocao"
"Xuzhang" "XZ" "Xuzhang" "xuzh1234" "Baoshan Prefecture, Longyang Area, Wafang, Xuzhang"
"Mangdi" "MD" "Mangdi" "sout3210" "Lincang Prefecture, Gengma County, Hepai, Mangdi"
"Yijiacun" "Eka" "Yijiacun" "ekaa1234" "Lincang Prefecture, Shuangjiang County, Heliu, Yijiacun"
"Yangliu" YL "Yangliu" "yang1304" "Baoshan Prefecture, Longyang Area, Yangliu"
"Yangliu" "YL" "Yangliu" "yang1304" "Baoshan Prefecture, Longyang Area, Yangliu"
8 changes: 1 addition & 7 deletions lexibank_yanglalo.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import argparse
from pathlib import Path

import attr
from clldutils.misc import slug
import pylexibank
from clldutils.misc import slug


@attr.s
Expand Down Expand Up @@ -36,13 +35,8 @@ def cmd_download(self, args):
self.raw_dir.xlsx2csv(supp_material_sheet)

def cmd_makecldf(self, args):
# _ = self.raw_dir.read_csv("33403_SOURCE4_2_A.cognatesets.csv", dicts=True)
wordl_english = self.raw_dir.read_csv("33403_SOURCE4_2_A.AppendixEwordlist.csv", dicts=True)
# _ = self.raw_dir.read_csv(
# "33403_SOURCE4_2_A.AppendixFalphabeticalorder.csv", dicts=True
# )

_ = self.raw_dir.read_csv("raw_data.tsv", dicts=True, delimiter="\t")
args.writer.add_sources()
language_lookup = args.writer.add_languages(lookup_factory="Source_ID")

Expand Down
Loading

0 comments on commit 1d01969

Please sign in to comment.