Git Product home page Git Product logo

conjugator's Introduction

Conjugator

Conjugator is an AI capable of conjugating french verbs. Multiple models have been implemented, including RNNs and Transformers for seq2seq translation at character level. Made with PyTorch.

How it works ?

We give a french verb as input (start ^ and end $ tokens are then added) :

"^jouer$"

In addition, the start of the output is given :

"^je "

We can provide only the start token for full generation :

"^"

The model then outputs the resulting string :

"^je joue"

Examples

Results using the transformer model trained with a dataset of 5k verbs during about 5 minutes :

Input : "^jouer$"
Output : "^je joue"

Input : "^rougir$"
Output : "^nous rougisssons"

Input : "^déglutir$"
Output : "^ils déglutissent"

Input : "^poulier$"
Output : "^je poulie"

# Does not exist
Input : "^vollir$"
Output : "^tu volis"

# Does not exist
Input : "^mager$"
Output : "^tu mages"

# Does not exist
Input : "^praxiter$"
Output : "^vous praxitez"

# Does not exist
Input : "^patriarcher$"
Output : "^tu patriarches"

# Does not exist
Input : "^anticonstituer$"
Output : "j'anticonsistisre"

Dataset

The data has been scraped on the web (this website), use src/scrap.py to generate the dataset.

conjugator's People

Contributors

cc618 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

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.