Code Monkey home page Code Monkey logo

gothichungarian's People

Contributors

martino-vic avatar

Stargazers

 avatar

Watchers

 avatar  avatar

gothichungarian's Issues

Improve loans.csv

  • replace recipdf_idx with ID of reconstruct.csv
  • add ID of adapt.csv
  • add an ID of the new table itself
  • rename Meaning_x and Meaning_y to Meaning_ad and Meaning_rc
  • Check if the IDs and Meanings didn't get messed up
  • add a write option to sanity.Search.phonmatch, to not having to re-run that part every time (took 13mins now)
  • Check how many of the meanings are contained in the word-vectors. This is done with model.has_index_for(tr) (see helpers.gensim_multiword). Try improving this number
  • If cleaning the meaning-column doesn't work, consider using BERT or some other sentence-based semantic similarity judgement algorithm
  • Check what is more of a reason for failure: semantic or phonological matching
  • Double-check subtasks in phonological matching: sound law extraction, application, matching

Replace Raw Download by Git-Download

We have a new routine, according to which we now download data with GIT and put entire CLDF directories into raw.

We have used this in a very "professional" way here: https://github.com/lexibank/lexibank-analysed/blob/main/cldfbench_lexibank_analysed.py#L95

But that is a bit too much for you, as you don't need to have all data on Zenodo for development stage.

So you can do something like:

    def cmd_download(self, args):
        for dataset in self.etc_dir.read_csv(
                "datasets.tsv", 
                delimiter="\t",
                dicts=True):
            if self.raw_dir.joinpath(
                    dataset["ID"], "cldf", "cldf-metadata.json").exists():
                args.log.info("skipping {0}".format(dataset["ID"]))
            else:
                args.log.info("cloning {0} to raw/{0}".format(dataset["ID"]))
                repo = Repo.clone_from(
                        "https://github.com/"+
                        dataset["Organisation"]+"/"+
                        dataset["Repository"]+'.git',
                        self.raw_dir / dataset["ID"])

You only need a file etc/datasets.tsv which contains ID, Organisation, and Repository as key, and ID and Repository are typically identical.

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.