Code Monkey home page Code Monkey logo

apertium-eng-deu's Introduction

English and German: apertium-eng-deu

This is an Apertium language pair for translating between English and German. What you can use this language package for:

  • Translating between English and German
  • Morphological analysis of English and German
  • Part-of-speech tagging of English and German

For information on the latter two points, see subheading "For more information" below

Requirements

You will need the following software installed:

  • lttoolbox (>= 3.3.0)
  • apertium (>= 3.3.0)
  • vislcg3 (>= 0.9.9.10297)
  • apertium-eng
  • apertium-deu

If this does not make any sense, we recommend you look at: apertium.org

Compiling

Given the requirements being installed, you should be able to just run:

$ ./configure $ make

make install

You can use ./autogen.sh instead of ./configure you're compiling from SVN. If you installed any prerequisite language packages using a --prefix to ./configure, make sure to give the same --prefix to ./configure here.

Testing

If you are in the source directory after running make, the following commands should work:

$ echo "TODO test sentence 1" | apertium -d . eng-deu TODO test translated sentence 1

$ echo "TODO test sentence 2" | apertium -d . deu-eng TODO test translated sentence 2

After installing somewhere in $PATH, you should be able to do e.g.

$ echo "TODO test sentence 1" | apertium eng-deu TODO test translated sentence 1

Files and data

  • apertium-eng-deu.eng-deu.dix - Bilingual dictionary
  • apertium-eng-deu.eng-deu.t1x - Chunking rules for translating into English
  • apertium-eng-deu.deu-eng.t1x - Chunking rules for translating into German
  • apertium-eng-deu.eng-deu.t2x - Interchunk rules for translating into English
  • apertium-eng-deu.deu-eng.t2x - Interchunk rules for translating into German
  • apertium-eng-deu.eng-deu.t3x - Postchunk rules for translating into English
  • apertium-eng-deu.deu-eng.t3x - Postchunk rules for translating into German
  • apertium-eng-deu.eng-deu.lrx - Lexical selection rules for translating into English
  • apertium-eng-deu.deu-eng.lrx - Lexical selection rules for translating into German
  • modes.xml - Translation modes

For more information

Help and support

If you need help using this language pair or data, you can contact:

See also the file AUTHORS included in this distribution.

apertium-eng-deu's People

Contributors

dolphingarlic avatar ftyers avatar marcriera avatar mr-martian avatar roybaer avatar sushain97 avatar tinodidriksen avatar unhammer avatar wolfgangth avatar xavivars avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

apertium-eng-deu's Issues

IRSTLM installation for gcc 7+

Hello,

To learn the lexical rules from parallel corpora we need to install IRSTLM. However, I am facing the following issue on gcc 7+:

In file included from /usr/include/c++/7/ext/string_conversions.h:41:0,
                 from /usr/include/c++/7/bits/basic_string.h:6361,
                 from /usr/include/c++/7/string:52,
                 from /usr/include/c++/7/bits/locale_classes.h:40,
                 from /usr/include/c++/7/bits/ios_base.h:41,
                 from /usr/include/c++/7/iomanip:40,
                 from /irstlm/src/dictionary.cpp:25:
/usr/include/c++/7/cstdlib:75:15: fatal error: stdlib.h: No such file or directory
 #include_next <stdlib.h>
               ^~~~~~~~~~
compilation terminated.
src/CMakeFiles/irstlm.dir/build.make:88: recipe for target 'src/CMakeFiles/irstlm.dir/dictionary.cpp.o' failed
make[2]: *** [src/CMakeFiles/irstlm.dir/dictionary.cpp.o] Error 1
CMakeFiles/Makefile2:341: recipe for target 'src/CMakeFiles/irstlm.dir/all' failed
make[1]: *** [src/CMakeFiles/irstlm.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

On searching I found this fix kaldi-asr/kaldi#1588 however its not working. Any ideas?

lsx-comp not installed

Hello,

I am trying to get the eng-deu working. However when running the ./configure in the apertium-eng-deu dir I am getting the error: You don't have lsx-comp installed.

Additionally, the README mentions that we need to have apertium-eng and apertium-deu softwares installed. But in the wikipedia they mention that in the language directories we shouldn't be running ./autogen.sh as things would get messy. Because when I tried compiling the 'apertium-eng' and 'apertium-deu' dir I got the same message that './configure: line 2761: AP_MKINCLUDE: command not found' despite the configure.ac having it already included.

Could you please help?

From https://wiki.apertium.org/wiki/Installation_troubleshooting:
'First off, make sure you've run ./autogen.sh in both the monolingual packages and the language pair. This typically fixes it.

Don't run ./configure in apertium language data; the autogen.sh file is a wrapper around configure that sets up various paths and such before running configure for you.

(Those paths aren't so important if you installed apertium from the nightly apt-get repos, but if you installed apertium from source or something other than apt-get, then running ./configure will probably mess things up unless you also make sure you've exported PKG_CONFIG_PATH and ACLOCAL_PATH to the right directories. Probably safest just to run ./autogen.sh in apertium data directories.)

'

apertium-tagger error

Hi. Translates in one direction, but not in the other.
echo "hello" | apertium deu-eng
*hello
echo "hello" | apertium eng-deu
State bad 0 0 1 0
apertium-tagger: 1:41: can't get const wchar_t: TheCharacterStream not good
^hello/hello<ij>/hello<n><sg>$^./.<sent>$
^
Try 'apertium-tagger --help' for more information.

AND same error with eng-cat:
echo "1" | apertium cat-eng
1
echo "1" | apertium eng-cat
State bad 0 0 1 0
apertium-tagger: 1:21: can't get const wchar_t: TheCharacterStream not good
^1/1<num>$^./.<sent>$
^
Try 'apertium-tagger --help' for more information.

At the same time pairs work successfully: es-fr, spa-eng, es-pt, spa-ita - there and back

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.