GithubHelp home page GithubHelp logo

word_etymologist's People

Contributors

kpsychas avatar

Stargazers

 avatar

Watchers

 avatar  avatar

word_etymologist's Issues

Create better validation function

The output of NN is a sequence of classification labels, here True, False,
but it is unlikely if at all possible to have only a single or even just two letter in a row
classified as True/False and the rest of the letters being classified the opposite.

There is need of a function that can even be thought as an extra layer that makes
output "smoother".
A smoother output satisfies the following requirements.

  • Should be as close as possible to the original output sequence
  • Given a parameter n and a classifications sequence S,
    then for every label in S there is a subsequence of length
    n that contains the label and every label in the subsequence is
    the same.
  • If length of subsequence is less than n, all labels in output sequence
    should be the same
  • Assume that the latest labels have more weight.

Improve Error Handling

The project currently skips words that are invalid without printing details about the Error.
Better error handling should include:

  1. The error type
  2. For all foreseen errors make a decision of whether to interrupt program and print a trace or continue training if it is not fatal.

Train Dataset on Custom Word File

The name of annotated word file should be a parameter of train.py script.
Optional extra features

  1. Multiple input files can be loaded in the same script and merged into one structure.
  2. Duplicate words are removed.

Allow Interactive training of model

This can be a separate script that prompts used to input a word and optionally what its expected output is.
The model should respond with the predicted output.

Bonus:
Keep a history of training inputs and allow user to reuse them.

Enable training words in batches

Currently words are offered to the network one by one. A better framework would allow multiple words to be trained at the same time. To do that we either need to pad all words in a batch to have the same size, or group words by length and sample words from one group at a time to make a batch.

Add CI/CD support

Minimum requirement is to be able to train and evaluate a model without extra arguments.
That means the following sequence of commands should run without errors.

python train.py --program 1
python train.py --program 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.