{"id":21769948,"url":"https://github.com/mideind/nnserver","last_synced_at":"2026-05-11T02:33:38.906Z","repository":{"id":39731485,"uuid":"204049882","full_name":"mideind/nnserver","owner":"mideind","description":"Neural Network Middleware Server","archived":false,"fork":false,"pushed_at":"2023-03-25T01:44:26.000Z","size":313,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-01-26T03:08:12.803Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mideind.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-08-23T18:24:21.000Z","updated_at":"2022-11-22T07:28:04.000Z","dependencies_parsed_at":"2022-09-08T23:31:41.434Z","dependency_job_id":null,"html_url":"https://github.com/mideind/nnserver","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mideind%2Fnnserver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mideind%2Fnnserver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mideind%2Fnnserver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mideind%2Fnnserver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mideind","download_url":"https://codeload.github.com/mideind/nnserver/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244745751,"owners_count":20503050,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-26T14:10:42.949Z","updated_at":"2026-05-11T02:33:33.880Z","avatar_url":"https://github.com/mideind.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Baseline In NMT for English--Icelandic\n\nThe MIT License (MIT)\n\nCopyright (c) 2020 Miðeind ehf\n\n## Disclaimer\n\nThis repository contains code to serve models trained with the [GreynirT2T](https://github.com/mideind/GreynirT2T) pipeline for NMT, it is no loner maintained since its core Tensor2Tensor has been de facto abandoned. See the repoository [GreynirSeq](https://github.com/mideind/GreynirSeq) for future development on NMT for Icelandic.\n\n## Models\n\nFor serving with docker, store models under `conf/models/`. The baseline models available on [CLARIN](https://repository.clarin.is/repository/xmlui/) are trained on a cleaned up and filtered variation of ParIce along with backtranslation data. One model for each direction English--Icelandic and Icelandic--English.\n\n## Serve models over http\n\n### Simple setup\n\nHaving installed docker and docker-compose, run\n\n```bash\ndocker-compose up\n```\n\nand you will be able to query a translation server for translations from Icelandic to English and vice versa using e.g. curl in the following manner:\n\n```bash\ncurl -X POST -H \"Content-Type: application/json\" -d '{\"model\": \"transformer-bt\", \"target\": \"en\", \"source\": \"is\", \"pgs\": [\"Hvað er klukkan?\"]}' localhost:5005/translate.api\n```\n\nwitch returns\n\n```\n[{\"batch_prediction_key\":[0],\"outputs\":\"What time is it?\",\"scores\":-0.642857373}]\n```\n\n### In production\n\nTo serve this in production a proper webserver such as nginx should be set up as a proxy and https used since sensitive data might be translated.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmideind%2Fnnserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmideind%2Fnnserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmideind%2Fnnserver/lists"}