Code Monkey home page Code Monkey logo

Comments (6)

davda54 avatar davda54 commented on June 22, 2024 1

Hi, thanks for your interest! I'm not sure if I'll have time to write a comprehensive training readme, but I'm happy to help you with training on these new languages! Please let me know here or on [email protected] if you have any issues.

The first thing you will need is a word-frequency list for each language. The Dataset class expect a tab-separated file with words sorted by frequency (f"{word}\t{frequency}"). Specifically, you should create these three files:

  • f"data/{language}_train_word_freq.tsv" for training
  • f"data/{language}_valid_word_freq.tsv" with unseen words for validation
  • f"data/{language}_frequent_word_freq.tsv" with the most common (seen) words for validation

Evaluation of these models is not easy (without training an expensive language model), but the two validation files are at least somewhat useful for sanity checking the training.

from factorizer.

jcuenod avatar jcuenod commented on June 22, 2024

Thanks! I'll give it a go when I have a chance, and email you if I get stuck :)

from factorizer.

avi-jit avatar avi-jit commented on June 22, 2024

Hi @davda54 it appears there are missing dependencies for the following imports in vq-vae/train.py

from lazy_adam import LazyAdamW
from random_sampler import WeightedRandomSampler

from factorizer.

avi-jit avatar avi-jit commented on June 22, 2024

Update: I was able to run train.py and get a model. How can we now convert this model to a .dawg file used in example code? @davda54

from factorizer.

avi-jit avatar avi-jit commented on June 22, 2024

@davda54 reminder here a few months later. Could you please help us convert the trained model into a .dawg file?

from factorizer.

davda54 avatar davda54 commented on June 22, 2024

Just saw this comment, did you manage to make it run with the build.py file?

from factorizer.

Related Issues (2)

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.