Hwyluso Moses-SMT ar gyfer y Gymraeg / Moses-SMT made easy for Welsh
10K+
(please scroll down for English)
Dyma fodd hwylus iawn i chi osod a defnyddio cyfieithu peirianyddol Moses-SMT yn lleol ar eich cyfrifiadur gyda modelau wedi eu hyfforddi eisoes neu i hyfforddi modelau eich hunain.
I rhedeg Moses-SMT gyda model cyfieithu sydd eisoes wedi ei hyfforddi, dim 2 orchymyn sydd ei angen.
$ docker pull techiaith/moses-smt
Bydd hyn yn llwytho ac yn gosod isadeiledd cyfieithu peirianyddol o fewn eich system Docker.
Mae’r Uned Technolegau Iaith (techiaith) wedi hyfforddi modelau cyfieithu yn barod ar eich gyfer ar sail data rydym wedi’i gasglu o ffynonellau agored a chyhoeddus, megis Cofnod y Cynulliad a’r Ddeddfwriaeth ar-lein.
Mae gan y peiriannau enwau a chyfeiriadau cyfieithu penodol:
Dyma’r ail orchymyn, gan ddewis peiriant ‘CofnodYCynulliad’ a’i osod i gyfieithu o’r Saesneg i’r Gymraeg :
$ docker run --name moses-smt-cofnodycynulliad-en-cy -p 8080:8080 -p 8008:8008 techiaith/moses-smt start -e CofnodYCynulliad -s en -t cy
Bydd y system yn llwytho ffeil i lawr (tua 3Gb mewn maint yn achos peiriant CofnodYCynulliad) cyn iddo gadarnhau ei fod yn barod i dderbyn ceisiadau i’w cyfieithu.
Os agorwch chi eich porwr a mynd at http://localhost:8008, dylai ffurflen syml ymddangos er mwyn i chi wirio a yw’r peiriant yn gweithio ai peidio.
This is a very easy method by which you can install and use Moses-SMT machine translation engines locally with either pre-trained models or to train your own models.
To use any pre-trained model, there are only two commands involved:
$ docker pull techiaith/moses-smt
This will download and install a Moses machine translation system within your Docker environment.
The Language Technologies Unit (techiaith) have trained translation models from bilingual data collected from open and public sources, such as the Proceedings of the Welsh National Assembly, the UK and Welsh Legislature website, as well as localisations of open source software. Each in turn provide domain specific machine translation capabilities. Each one is identified according to its Welsh name. Thus:
These names can be used in the second Docker command that will start (and fetch is necessary from the Welsh National Language Technologies Portal) a translation engine for a desired source and target language pairing:
$ docker run --name moses-smt-cofnodycynulliad-en-cy -p 8080:8080 -p 8008:8008 techiaith/moses-smt start -e CofnodYCynulliad -s en -t cy
In the case of CofnodYCynulliad, the engine may be a very large download - about 3Gb.
Open your browser and browse to http://localhost:8008, where you should see a simple demo form that will help you check if the engine is working or not.
Content type
Image
Digest
sha256:0535ddc98…
Size
392.1 MB
Last updated
over 2 years ago
docker pull techiaith/moses-smt