Newer
Older
1. Run `pip install -r requirements.txt` from the project root folder.
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
2. Download the `DE -> EN (tab-delimited, UTF8)` [dictionary file](https://www1.dict.cc/translation_file_request.php?l=e) from dict.cc.
3. Unzip the downloaded archive and rename its content dictionary file to `de-en.txt`.
4. Move the dictionary file into the `resources/dictionary` folder.
5. Run `python setup.py` from the project root folder.
Overwrite the dictionary database if asked to do so.
## Optional: Integrate Other Languages Than English
Note: The German to English dictionary is required regardless of other integrated languages.
1. Download the desired language [dictionary file](https://www1.dict.cc/translation_file_request.php?l=e) from dict.cc.
**The origin language is required to be German.**
2. Unzip the downloaded archive and rename the content dictionary file to `de-target_language_code.txt`.
Substitute `target_language_code` with the corresponding target language code.
A ist of valid language codes is specified in the "Language Codes" section.
3. Move the dictionary file into the `resources/dictionary` folder.
4. Run `python setup.py` from the project root folder.
Overwrite the dictionary database if asked to do so.
## Run
- To start the commandline interface run `python phrasenerkenner.py` from the project root folder.
- To start the GUI application run `python GUI_start.py` from the project root folder.
## Language Codes
The following table specifies the supported languages by dict.cc and the Phrasenerkenner.
| Language | Language Code |
|------------|:-------------:|
| Deutsch | de |
| English | en |
| Svenska | sv |
| Íslenska | is |
| Русский | ru |
| Română | ro |
| Français | fr |
| Italiano | it |
| Slovenčina | sk |
| Português | pt |
| Nederlands | nl |
| Magyar | hu |
| Suomi | fi |
| Latina | la |
| Español | es |
| Български | bg |
| Hrvatski | hr |
| Norsk | no |
| Čeština | cs |
| Dansk | da |
| Türkçe | tr |
| Polski | pl |
| Esperanto | eo |
| Српски | sr |
| Ελληνικά | el |
| Босански | bs |
| Shqip | sq |