Skip to content

Adamits/lstm-inflector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LSTM Inflector

Install

You can 'install' with the setup.py:

python setup.py develop will create a python module in your environment that updates as you update the code. It can then be imported like a regular python module:

import lstm_inflector

Usage

Train a sequence to sequence LSTM for morphological inflection generation. An example is given in experiments/run.sh. See train.py for all options, including a bidirectional or unidirectional encoder, as well as including attention or not.

Details

The Attention function is, I believe, from Luong et al 2015. We may want to implement Bahdanau attention as well/instead. The input data format for the sigmorphon_data dataset setting is the same as the SIGMORPHON shared tasks: a file where each line is a tab-delimited string of (lemma, surface form, bundle of morphological tags).

Dropout can also be added to the LSTM, which currently does not use it.

Requirements

This code assumes python 3.9 - or at least any version where the click library is in the standard python library.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published