from abvdget import Downloader
content = Downloader('austronesian').get(1)
d = Downloader('austronesian')
d.get(99)
d.write("99.json")
db = ABVDatabase(files=['1.json', '2.json'])
db.process()
for r in db.records:
print(r)
ABVD Get
License: BSD 3-Clause "New" or "Revised" License
Hi Simmo,
Perhaps it's useful if Siva and I file some questions we had about ABVDget here rather than via emails? Let us know if that's not alright.
We've moved our "playpen" (as Harald calls it) out of Glottobank, it's here now. I've checked with Harald about what can be shared and how, all the GB and NTS data is handled appropriately.
What we want to do is get distance measurements of austronesian languages.
For starters, we've written two scripts: one to download all the json files (get_lgs.py) and one to mash them together into a wide csv-file just the way we wanted them (Make_ABVD_wide.R). We encountered some issues, most of them were solved and I learned a lot. Hurray!
Should you have time, we have these questions:
How come Futuna, West and Proto-Philippine are in ABVD when they have no entries?
Following your sample code here, we tried running this bit, but we couldn't get strict and uniques to work.
db = ABVDatabase(
strict=True, # Strict cognate coding (i.e. ignore dubious items like 1?)
uniques=True, # encode non-cognate items as unique states.
)
We commented those lines out and dealt with the issue in our own way. We want to be inclusive so we’re testing lumping cognacy classes with question marks together with those without, we'll see how it goes. The r-script has a way of dealing with turning non-cognate states into unique states, should be exactly the same result as what you were doing.
We weren’t sure what to do when there is more than one cognate class for an item. We set it up so that we only get the first of the cognate classes listed. Is this reasonable?
There are cases where, for one word (meaning/concept), in one language there is more than one entry. We weren’t sure how to deal with this when making a distance matrix. We picked the form with the lowest cognacy number for now.
We imagine that there's a better way of dealing with cases of multiple values/entries like (3) and (4), perhaps we'll figure it out on our own - but if there's a shortcut available that'd be appreciated too.
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.