зеркало из https://github.com/microsoft/inmt.git
3b10ef5499 | ||
---|---|---|
.ipynb_checkpoints | ||
InteractiveTranslation | ||
gpt | ||
mt | ||
mtpara | ||
mtsimple | ||
opennmt | ||
static | ||
templates | ||
.azure-demo | ||
.gitignore | ||
Dockerfile | ||
README.md | ||
docker-compose.yml | ||
env-example | ||
graph.png | ||
manage.py | ||
opennmt.zip | ||
opt_data | ||
pred.out | ||
requirements.txt |
README.md
#Introduction Interactive Machine Translation app uses Django and jQuery as its tech stack. Please refer to their docs for any doubts.
Installation Instructions
- Generate your access keys from your profile settings (click on top right and go to security) for ELLORA.
- Clone the repository locally
git clone https://dev.azure.com/ELLORA/_git/Interactive%20Machine%20Translation inmt
. Username is your microsoft email address, password is your access key. - Install dependencies using -
python -m pip install -r requirements.txt
. Be sure to check your python version. This tool is compatible with Python3. - Make a new model folder using
mkdir model
. Download the models from https://microsoft-my.sharepoint.com/:f:/p/t-sesan/Evsn3riZxktJuterr5A09lABTVjhaL_NoH430IMgkzws9Q?e=VXzX5T and put it in model folder. - Run the server -
python manage.py runserver
- The server opens on port 8000 by default. Open
localhost:8000/simple
for the simple interface.
Keystroke Interface
The keystroke interface is a portal for translations. There is database access required and hence there more processes involved in the setup.
python manage.py makemigrations
- Generates the relational mapping for sql table creation.python manage.py migrate
- Creates sqlite db and puts tablespython manage.py superuser
- Make a admin user to access the admin interface and handle the keystroke interface. Admin portal can be accessed fromlocalhost:8000/admin
.
More details about handling Keystroke Interface to follow soon.