Code Monkey home page Code Monkey logo

lingtypology's Issues

stroke_features delete normal features

The following code, taken from the documentation, does not work as intended:

import lingtypology
languages = ["Adyghe", "Kabardian", "Polish", "Russian", "Bulgarian"]
features = ["Agglutinative", "Agglutinative", "Inflected", "Inflected", "Analytic"]
stroke_features = ['Ergative', 'Ergative', 'Accusative', 'Accusative', 'Accusative']
m = lingtypology.LingMap(languages)
m.add_features(features)
m.add_stroke_features(stroke_features)
m.create_map()

While there are distinct inner and outer colors, both legends only show the values Ergative and Accusative; the features list is ignored and only appears when no stroke_features are added. Downgrading to earlier versions did not fix this; I wonder why it appears to work in the documentation?

Access glottolog data from github repos fork

Hi there, just came across this repos and I think what I noted for the R repos applies here as well:
ropensci/lingtypology#1

Basically,whenever you provide access to glottolog data through your tools, you should

  • either state explicitly and visibly which version of glottolog data you are using
  • or (recommended) give users control over which version of glottolog data they want to use your tools with.

Let me know if I can help with anything!

Kernel-density Estimation

A feature request from myself. Unfortunately, I am not familiar with this thing. It would be appreciated, if somebody could give me an example of how to calculate it.

I have coordinates (example below). I need to perform Kernel-destiny Estimation and draw a plot with matplotlib. Then I can implement it into lingtypology.

coordinates = [
    (53.2186, -7.6150899999999995),
    (58.55, 25.82),
    (59.92, 10.71),
    (46.3913, 24.2256),
    (51.8439, 18.6255),
    (43.0464, 12.6489),
    (39.8667, 32.8667),
    (48.0, 2.0), (53.0, -1.0),
    (40.4414, -1.11788)
]

Default location for app-specific user data

I've seen you are looking in .lingtypology_data for user-supplied Glottolog data. There's a python package to determine locations for such data in a fairly cross-platform way: appdirs. So in this case, rather than in ~/.lingtypology_data one would look in appdirs.user_data_dir('lingtypology').

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.