Giter Club home page Giter Club logo

Comments (8)

LinguList avatar LinguList commented on July 29, 2024
  1. This is the problem of your actual raw_data file, which should not have Parameter as column name, but obviously Parameter_ID, right? I mean, we read the data in as a dictionary, then we add the dict with keywords, so if there is now key=Parameter_ID, what can we add?

from gata.

LinguList avatar LinguList commented on July 29, 2024
  1. You must modify the field content then.
        for row in self.etc_dir.read_csv(
            'languages.csv',
            dicts=True,
            ):
            row["Source"] = [row["Source"]]
            args.writer.objects['LanguageTable'].append(row)

from gata.

LinguList avatar LinguList commented on July 29, 2024
  1. what do you mean by "tried"?

from gata.

MuffinLinwist avatar MuffinLinwist commented on July 29, 2024
  1. Ok, I've already changed it in gata_raw.csv as it should have been. All is working fine now. My question is (and maybe it has the same answer as point 3): why I cannot modify it on the script instead of changing it on the data.csv?

from gata.

MuffinLinwist avatar MuffinLinwist commented on July 29, 2024
  1. Great. It now works!
  2. I delete it from StructureDataset_metadata.json but it appears again when I run CLDF conversion.

from gata.

LinguList avatar LinguList commented on July 29, 2024

Yes, since it is a required field that should be addressed. In fact, you should add codes to your datasets (I propose to make a new issue for that!). Similar to "Parameter_ID" in the ValueTable, you cannot just ignore this part. It is part of the structure, you can see when checking other cldf datasets here.

from gata.

LinguList avatar LinguList commented on July 29, 2024

You can of course modify and tweak things in your script, but what I showed you is the easiest way. If you want to modify things on the fly, you should create a dictionary with the keys you desire, and then pass this to the respective table, appending it there. But it'll be more code with the settings you have here, why go for more code?

from gata.

MuffinLinwist avatar MuffinLinwist commented on July 29, 2024

Ok great :) It is all clear to me now. I'm closing this issue and opening a new one regarding the codes. Thanks!

from gata.

Related Issues (19)

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.