Skip to content

AI capable of conjugating french verbs. Seq2seq translation at character level using transformers and rnns

License

Notifications You must be signed in to change notification settings

Cc618/Conjugator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

AI capable of conjugating french verbs. Seq2seq translation at character level using transformers and rnns

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages