Giter VIP home page Giter VIP logo

Comments (7)

xrotwang avatar xrotwang commented on July 19, 2024 1
    glottolog = Glottolog()
    languoids = {l.id: l for l in glottolog.languoids()}
    l2geo = {}
    for lid, l_ in languoids.items():
        if l_.level == Level.language or l_.level == Level.dialect:
            while l_.latitude is None and l_.lineage:
                l_ = languoids[l_.lineage.pop()[1]]
            if l_.latitude is not None:
                l2geo[lid] = (l_.latitude, l_.longitude)

from clics2.

xrotwang avatar xrotwang commented on July 19, 2024

I think this mainly concerns dialects, and for these, we should default to using the coordinates of the corresponding Glottolog language.

from clics2.

LinguList avatar LinguList commented on July 19, 2024

Ah, is there a way to check for the corresponding language of a glottolog-dialect?

from clics2.

Anaphory avatar Anaphory commented on July 19, 2024

Just go up the glottolog tree until you find a language? I think I have written that code before, but I cannot remember for what application and for with which API version of the glottolog data.

@xrotwang, is the reason you suggest that that most Glottolog dialects don't have coordinates?

Then it should be “walk up the glottolog tree until you find something with coordinates”, just in case future super-dialects contain coordinates?

from clics2.

LinguList avatar LinguList commented on July 19, 2024

Is there a distinction between "dialect" and "language"?

from clics2.

LinguList avatar LinguList commented on July 19, 2024

screenshot_2018-03-01_11-18-29

That may in fact increase the data, as we are loosing some 100 languages now...

from clics2.

LinguList avatar LinguList commented on July 19, 2024

Yes, in fact, we can save almost all languages in the sample. I only kicked out the Bookkeeping families.

from clics2.

Related Issues (20)

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.