This commit is contained in:
rjawor 2017-01-21 17:07:46 +01:00
commit 2a1549a4ac
11 changed files with 23 additions and 7 deletions

View File

@ -10,7 +10,7 @@ function searchHandle(tmid) {
}
$.ajax({
url: '/concordia_gate.php',
url: '/cat/concordia_gate.php',
type: 'post',
dataType: 'json',
success: function (data) {
@ -30,7 +30,7 @@ function phraseSearchHandle(tmid, intervals) {
$.ajax({
url: '/concordia_gate.php',
url: '/cat/concordia_gate.php',
type: 'post',
dataType: 'json',
success: function (data) {

View File

@ -38,7 +38,7 @@ with open('concordia_gate.php_pattern', 'r') as gate_pattern_file, open(root_dir
gate_file.write(line)
versions_dir = 'versions'
versions_dir = 'versions_enabled'
versions = []

View File

@ -1,4 +1,7 @@
#!/bin/sh
sudo rm -rf /var/www/html/*
sudo ./publish.py /var/www/html
ROOT_PATH="/var/www/html/cat"
sudo rm -rf $ROOT_PATH
sudo mkdir $ROOT_PATH
sudo ./publish.py $ROOT_PATH

View File

@ -0,0 +1,10 @@
dir@#@jrc_enpl
concordia_host@#@concordia.vm.wmi.amu.edu.pl
concordia_port@#@8800
tmid@#@2
desc@#@Welcome to the interactive Concordia demo. The system finds the longest matches of the pattern sentence in its translation memory. This translation memory is 200 000 sentences taken from English-Polish corpus of European Law. Please enter an English sentence in the field below and press Enter (or use the search button). This instance of Concordia works best with law sentences, but is very likely to output some results for any English sentence. You can also use predefined samples, simply use the link "show/hide samples" and apply one of the sample sentences. After the search, click on the highlighted fragments to see their context.
enjoy@#@Enjoy your work with the system!
prompt@#@Enter search pattern (English sentence):
suggestion@#@Every ship in the European Union must have a crew of 50 or more workers.
suggestion@#@It is impossible to abolish the customs duties on fruit and vegetables.
suggestion@#@The convention on human rights was held in Geneva.

View File

@ -1,7 +1,7 @@
dir@#@jrc_plen
concordia_host@#@concordia.vm.wmi.amu.edu.pl
concordia_port@#@8800
tmid@#@3
tmid@#@1
desc@#@Witamy w interaktywnym demo systemu Concordia. System znajduje najdłuższe fragmenty zdania wejściowego w pamięci tłumaczeń. W pamięci tej znajduje się 200 000 zdań z polsko-angielskiego korpusu ustawodawstwa Unii Europejskiej. Proszę wpisać polskie zdanie w poniższe pole i nacisnąć Enter (albo użyć przycisku "search"). Ta wersja Concordii działa najlepiej ze zdaniami prawniczymi, ale jest bardzo prawdopodobne, że uzyska się jakiekolwiek wyniki dla dowolnego polskiego zdania. Aby zapoznać się z systemem możesz użyć wcześniej przygotowanych przykładów - po prostu kliknij link "show/hide samples" a następnie przycisk "apply" przy wybranym przykładzie. Po wyszukaniu, kliknij na wybrany podświetlony fragment, aby zobaczyć jego kontekst.
enjoy@#@Życzymy udanej pracy z systemem!
prompt@#@Wprowadź zdanie (po polsku):

View File

@ -1,7 +1,7 @@
dir@#@setimes_enhr
concordia_host@#@concordia.vm.wmi.amu.edu.pl
concordia_port@#@8800
tmid@#@4
tmid@#@3
desc@#@Welcome to Concordia. The system finds the longest matches of the pattern sentence in its translation memory. This translation memory is 200 000 sentences taken from the SETIMES2 English-Croatian corpus (<a href="http://opus.lingfil.uu.se/SETIMES2.php" target="_blank">link</a>). Please enter a Croatian sentence in the field below and press Enter (or use the search button). You can test the system on predefined samples, simply use the link "show/hide samples" and apply one of the sample sentences. After the search, click on the highlighted fragments to see their context.
enjoy@#@Enjoy your work with the system!
prompt@#@Enter search pattern (English sentence):

View File

@ -0,0 +1 @@
../versions_available/jrc_enpl.cfg

View File

@ -0,0 +1 @@
../versions_available/jrc_plen.cfg

View File

@ -0,0 +1 @@
../versions_available/setimes_enhr.cfg