From ab6a905093a995b20cb669642fdd2831b8fcf153 Mon Sep 17 00:00:00 2001 From: lkrsnik Date: Tue, 20 Feb 2024 10:59:58 +0100 Subject: [PATCH] Added --compare and --query --- README.md | 4 +- app.py | 32 +++++- docker-compose.yml | 15 +++ messages.pot | 129 ++++++++++++++---------- templates/index.html | 30 ++++++ translations/en/LC_MESSAGES/messages.mo | Bin 2802 -> 2802 bytes translations/en/LC_MESSAGES/messages.po | 129 ++++++++++++++---------- translations/sl/LC_MESSAGES/messages.mo | Bin 2829 -> 2829 bytes translations/sl/LC_MESSAGES/messages.po | 129 ++++++++++++++---------- 9 files changed, 293 insertions(+), 175 deletions(-) create mode 100644 docker-compose.yml diff --git a/README.md b/README.md index cdf6c6d..1fe7901 100644 --- a/README.md +++ b/README.md @@ -24,5 +24,5 @@ pybabel compile -d translations # Deployment -docker build -t my-flask-app . -docker run -p 8080:8080 my-flask-app \ No newline at end of file +docker build -t stark-web . +docker run -p 8080:8080 stark-web \ No newline at end of file diff --git a/app.py b/app.py index d3be384..97477d7 100755 --- a/app.py +++ b/app.py @@ -136,8 +136,6 @@ def create_app(): file_age_seconds = c_t - f_t if file_age_seconds > DAYS_BEFORE_DELETION * 86400: os.remove(file_path) - # TODO ADD LINKS - # TODO TEST VARYING SIZES OF TEXT IN TABLE return send_file(os.path.join('media', result_id), as_attachment=True, download_name='results.tsv') order_by_display = request.args.get('order_by') @@ -183,7 +181,6 @@ def create_app(): # handling input if 'file' in request.files and request.files['file']: - # TODO ADD OPTION FOR MULTIPLE FILES - ZIP! # store file f = request.files['file'] input_path = os.path.join('media', secure_filename(f.filename)) @@ -271,9 +268,34 @@ def create_app(): if 'root_restriction' in form and form['root_restriction']: configs['root_whitelist'] = form['root_restriction'].split('|') - configs['query'] = None + if 'query' in form and form['query']: + configs['query'] = form['query'] + configs['tree_size'] = '0' + else: + configs['query'] = None + + # handling input + if 'compare_file' in request.files and request.files['compare_file']: + # store file + f = request.files['compare_file'] + input_path = os.path.join('media', secure_filename(f.filename)) + f.save(input_path) + + configs['compare'] = input_path + if 'compare_url' in form and form['compare_url']: + validation['compare_file'] = gettext('Please insert either compare url or file, not both of them.') + validation['compare_url'] = gettext('Please insert either compare url or file, not both of them.') + + elif 'compare_url' in form and form['compare_url']: + try: + name = form['compare_url'].split('/')[-1] + input_path = os.path.join('media', name) + response = requests.get(form['compare_url']) + open(input_path, "wb").write(response.content) + configs['compare'] = input_path + except: + validation['compare_url'] = gettext('Incorrect URL!') - configs['compare'] = None configs['sentence_count_file'] = None configs['detailed_results_file'] = None diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..80054cd --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,15 @@ +version: "3.7" +services: + app: + image: stark-web +# build: . + command: waitress-serve --port=5000 --call app:create_app + restart: always + environment: + - FLASK_ENV=development + ports: + - "5000:5000" +# volumes: +# - ./data/media:/oznacevalnik-api/media +# tmpfs: +# - /oznacevalnik-api/out diff --git a/messages.pot b/messages.pot index 876e929..cfd42a7 100644 --- a/messages.pot +++ b/messages.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2024-02-19 09:57+0100\n" +"POT-Creation-Date: 2024-02-20 10:56+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -17,210 +17,227 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Generated-By: Babel 2.14.0\n" -#: app.py:202 app.py:203 +#: app.py:192 app.py:193 msgid "Please insert either input url or file, not both of them." msgstr "" -#: app.py:213 +#: app.py:203 app.py:297 msgid "Incorrect URL!" msgstr "" -#: app.py:215 app.py:216 +#: app.py:205 app.py:206 msgid "Please insert either input url or provide a file." msgstr "" -#: app.py:228 +#: app.py:218 msgid "Please provide information about minimum and maximum tree size." msgstr "" -#: app.py:232 +#: app.py:222 msgid "Tree size minimum should be smaller than tree size maximum." msgstr "" -#: app.py:243 +#: app.py:233 msgid "Please select at least one node type." msgstr "" -#: app.py:248 +#: app.py:238 msgid "Node option" msgstr "" -#: app.py:248 +#: app.py:238 msgid "is not supported. Please enter valid options." msgstr "" -#: app.py:292 +#: app.py:286 app.py:287 +msgid "Please insert either compare url or file, not both of them." +msgstr "" + +#: app.py:307 msgid "Please insert an Integer." msgstr "" -#: app.py:316 +#: app.py:331 msgid "" "Processing failed! Please recheck your settings, e.g. input format or " "head node description." msgstr "" -#: app.py:325 templates/about.html:16 templates/about.html:18 -#: templates/index.html:16 templates/index.html:18 templates/index.html:30 -#: templates/result.html:16 templates/result.html:18 +#: app.py:340 templates/about.html:18 templates/about.html:20 +#: templates/index.html:18 templates/index.html:20 templates/index.html:32 +#: templates/result.html:18 templates/result.html:20 msgid "code" msgstr "" -#: templates/about.html:18 templates/about.html:29 templates/index.html:18 -#: templates/result.html:18 +#: templates/about.html:20 templates/about.html:31 templates/index.html:20 +#: templates/result.html:20 msgid "About" msgstr "" -#: templates/about.html:19 templates/index.html:19 templates/result.html:19 +#: templates/about.html:21 templates/index.html:21 templates/result.html:21 msgid "switch_link" msgstr "" -#: templates/about.html:20 templates/index.html:20 templates/result.html:20 +#: templates/about.html:22 templates/index.html:22 templates/result.html:22 msgid "switch_code" msgstr "" -#: templates/about.html:30 +#: templates/about.html:32 msgid "about_description" msgstr "" -#: templates/index.html:29 +#: templates/index.html:31 msgid "intro_description" msgstr "" -#: templates/index.html:31 +#: templates/index.html:33 msgid "Input data" msgstr "" -#: templates/index.html:34 +#: templates/index.html:36 msgid "Upload a treebank" msgstr "" -#: templates/index.html:34 +#: templates/index.html:36 templates/index.html:180 msgid "in CONLL-U format" msgstr "" -#: templates/index.html:34 templates/index.html:62 templates/index.html:70 -#: templates/index.html:110 templates/index.html:125 templates/index.html:141 -#: templates/index.html:158 templates/index.html:168 +#: templates/index.html:36 templates/index.html:64 templates/index.html:72 +#: templates/index.html:112 templates/index.html:127 templates/index.html:143 +#: templates/index.html:160 templates/index.html:170 templates/index.html:176 +#: templates/index.html:180 msgid "Help" msgstr "" -#: templates/index.html:37 +#: templates/index.html:39 templates/index.html:183 msgid "Browse" msgstr "" -#: templates/index.html:41 +#: templates/index.html:43 templates/index.html:187 msgid "Upload" msgstr "" -#: templates/index.html:50 +#: templates/index.html:52 templates/index.html:197 msgid "Or" msgstr "" -#: templates/index.html:50 +#: templates/index.html:52 templates/index.html:197 msgid "insert a URL link to a treebank in CONLL-U format" msgstr "" -#: templates/index.html:50 +#: templates/index.html:52 templates/index.html:197 msgid "Example" msgstr "" -#: templates/index.html:59 +#: templates/index.html:61 msgid "Tree specification" msgstr "" -#: templates/index.html:62 +#: templates/index.html:64 msgid "Tree size" msgstr "" -#: templates/index.html:62 +#: templates/index.html:64 msgid "number of tokens in the tree" msgstr "" -#: templates/index.html:70 +#: templates/index.html:72 msgid "Node type" msgstr "" -#: templates/index.html:70 +#: templates/index.html:72 msgid "token characteristics to consider" msgstr "" -#: templates/index.html:76 +#: templates/index.html:78 msgid "Part-of-speech" msgstr "" -#: templates/index.html:85 +#: templates/index.html:87 msgid "Lemma" msgstr "" -#: templates/index.html:91 +#: templates/index.html:93 msgid "Form" msgstr "" -#: templates/index.html:105 +#: templates/index.html:107 msgid "Advanced settings" msgstr "" -#: templates/index.html:110 +#: templates/index.html:112 msgid "Labeled trees" msgstr "" -#: templates/index.html:110 +#: templates/index.html:112 msgid "include names of dependency relations" msgstr "" -#: templates/index.html:114 templates/index.html:129 templates/index.html:145 +#: templates/index.html:116 templates/index.html:131 templates/index.html:147 msgid "No" msgstr "" -#: templates/index.html:117 templates/index.html:132 templates/index.html:148 +#: templates/index.html:119 templates/index.html:134 templates/index.html:150 msgid "Yes" msgstr "" -#: templates/index.html:125 +#: templates/index.html:127 msgid "Fixed order" msgstr "" -#: templates/index.html:125 +#: templates/index.html:127 msgid "differentiate trees based on surface word order" msgstr "" -#: templates/index.html:141 +#: templates/index.html:143 msgid "Association measures" msgstr "" -#: templates/index.html:141 +#: templates/index.html:143 msgid "print MI, logDice and t-score" msgstr "" -#: templates/index.html:158 +#: templates/index.html:160 msgid "Frequency threshold" msgstr "" -#: templates/index.html:158 +#: templates/index.html:160 msgid "specify the minimum frequency of a tree in the treebank" msgstr "" -#: templates/index.html:168 +#: templates/index.html:170 msgid "Head" msgstr "" -#: templates/index.html:168 +#: templates/index.html:170 msgid "specify potential restrictions on the head node" msgstr "" -#: templates/index.html:179 +#: templates/index.html:176 +msgid "Query" +msgstr "" + +#: templates/index.html:176 +msgid "write a query. Note: Tree size attribute will be ignored!" +msgstr "" + +#: templates/index.html:180 +msgid "Upload a compare corpus" +msgstr "" + +#: templates/index.html:211 msgid "Submit" msgstr "" -#: templates/index.html:187 +#: templates/index.html:219 msgid "No results" msgstr "" -#: templates/index.html:188 +#: templates/index.html:220 msgid "Processing with your settings didnt produce any results!" msgstr "" -#: templates/result.html:30 +#: templates/result.html:32 msgid "Download complete results" msgstr "" diff --git a/templates/index.html b/templates/index.html index 75a3839..2f35aa7 100644 --- a/templates/index.html +++ b/templates/index.html @@ -170,6 +170,36 @@ +
+
+ + +
+
+
+ +
+
+ {{ _('Browse') }} + +
+
+ + {% if 'compare_file' in validation %} + + {% endif %} +
+
+
+
+
+ + + {% if 'compare_url' in validation %} + + {% endif %} +
+
{% if 'general' in validation %} diff --git a/translations/en/LC_MESSAGES/messages.mo b/translations/en/LC_MESSAGES/messages.mo index 22477c2c352bc1157c3b419798cfa1c0bf465365..748a875e4f7d284ad84608457f83149f2a405e3a 100644 GIT binary patch delta 21 ccmew)`bl)dOjZsf0|i3^D^s)03t0nM0aOA8oB#j- delta 21 ccmew)`bl)dOjZs\n" "Language-Team: en \n" @@ -18,72 +18,76 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "Generated-By: Babel 2.14.0\n" -#: app.py:202 app.py:203 +#: app.py:192 app.py:193 msgid "Please insert either input url or file, not both of them." msgstr "" -#: app.py:213 +#: app.py:203 app.py:297 msgid "Incorrect URL!" msgstr "" -#: app.py:215 app.py:216 +#: app.py:205 app.py:206 msgid "Please insert either input url or provide a file." msgstr "" -#: app.py:228 +#: app.py:218 msgid "Please provide information about minimum and maximum tree size." msgstr "" -#: app.py:232 +#: app.py:222 msgid "Tree size minimum should be smaller than tree size maximum." msgstr "" -#: app.py:243 +#: app.py:233 msgid "Please select at least one node type." msgstr "" -#: app.py:248 +#: app.py:238 msgid "Node option" msgstr "Node option" -#: app.py:248 +#: app.py:238 msgid "is not supported. Please enter valid options." msgstr "" -#: app.py:292 +#: app.py:286 app.py:287 +msgid "Please insert either compare url or file, not both of them." +msgstr "" + +#: app.py:307 msgid "Please insert an Integer." msgstr "" -#: app.py:316 +#: app.py:331 msgid "" "Processing failed! Please recheck your settings, e.g. input format or head " "node description." msgstr "" -#: app.py:325 templates/about.html:16 templates/about.html:18 -#: templates/index.html:16 templates/index.html:18 templates/index.html:30 -#: templates/result.html:16 templates/result.html:18 +#: app.py:340 templates/about.html:18 templates/about.html:20 +#: templates/index.html:18 templates/index.html:20 templates/index.html:32 +#: templates/result.html:18 templates/result.html:20 msgid "code" msgstr "en" -#: templates/about.html:18 templates/about.html:29 templates/index.html:18 -#: templates/result.html:18 +#: templates/about.html:20 templates/about.html:31 templates/index.html:20 +#: templates/result.html:20 msgid "About" msgstr "About" -#: templates/about.html:19 templates/index.html:19 templates/result.html:19 +#: templates/about.html:21 templates/index.html:21 templates/result.html:21 msgid "switch_link" msgstr "?lang=sl" -#: templates/about.html:20 templates/index.html:20 templates/result.html:20 +#: templates/about.html:22 templates/index.html:22 templates/result.html:22 msgid "switch_code" msgstr "SL" -#: templates/about.html:30 +#: templates/about.html:32 msgid "about_description" msgstr "This will be about description..." -#: templates/index.html:29 +#: templates/index.html:31 msgid "intro_description" msgstr "" "Welcome to the online demo interface for STARK - a highly-customizible tool " @@ -93,140 +97,153 @@ msgstr "" "in more detail here. Simply upload your treebank and click ‘SUBMIT’ to view " "the initial results!" -#: templates/index.html:31 +#: templates/index.html:33 msgid "Input data" msgstr "Input data" -#: templates/index.html:34 +#: templates/index.html:36 msgid "Upload a treebank" msgstr "Upload a treebank" -#: templates/index.html:34 +#: templates/index.html:36 templates/index.html:180 msgid "in CONLL-U format" msgstr "in CONLL-U format" -#: templates/index.html:34 templates/index.html:62 templates/index.html:70 -#: templates/index.html:110 templates/index.html:125 templates/index.html:141 -#: templates/index.html:158 templates/index.html:168 +#: templates/index.html:36 templates/index.html:64 templates/index.html:72 +#: templates/index.html:112 templates/index.html:127 templates/index.html:143 +#: templates/index.html:160 templates/index.html:170 templates/index.html:176 +#: templates/index.html:180 msgid "Help" msgstr "Help" -#: templates/index.html:37 +#: templates/index.html:39 templates/index.html:183 msgid "Browse" msgstr "Browse" -#: templates/index.html:41 +#: templates/index.html:43 templates/index.html:187 msgid "Upload" msgstr "Upload" -#: templates/index.html:50 +#: templates/index.html:52 templates/index.html:197 msgid "Or" msgstr "Or" -#: templates/index.html:50 +#: templates/index.html:52 templates/index.html:197 msgid "insert a URL link to a treebank in CONLL-U format" msgstr "insert a URL link to a treebank in CONLL-U format" -#: templates/index.html:50 +#: templates/index.html:52 templates/index.html:197 msgid "Example" msgstr "Example" -#: templates/index.html:59 +#: templates/index.html:61 msgid "Tree specification" msgstr "Tree specification" -#: templates/index.html:62 +#: templates/index.html:64 msgid "Tree size" msgstr "Tree size" -#: templates/index.html:62 +#: templates/index.html:64 msgid "number of tokens in the tree" msgstr "number of tokens in the tree" -#: templates/index.html:70 +#: templates/index.html:72 msgid "Node type" msgstr "Node type" -#: templates/index.html:70 +#: templates/index.html:72 msgid "token characteristics to consider" msgstr "token characteristics to consider" -#: templates/index.html:76 +#: templates/index.html:78 msgid "Part-of-speech" msgstr "Part-of-speech" -#: templates/index.html:85 +#: templates/index.html:87 msgid "Lemma" msgstr "Lemma" -#: templates/index.html:91 +#: templates/index.html:93 msgid "Form" msgstr "Form" -#: templates/index.html:105 +#: templates/index.html:107 msgid "Advanced settings" msgstr "Advanced settings" -#: templates/index.html:110 +#: templates/index.html:112 msgid "Labeled trees" msgstr "Labeled trees" -#: templates/index.html:110 +#: templates/index.html:112 msgid "include names of dependency relations" msgstr "include names of dependency relations" -#: templates/index.html:114 templates/index.html:129 templates/index.html:145 +#: templates/index.html:116 templates/index.html:131 templates/index.html:147 msgid "No" msgstr "No" -#: templates/index.html:117 templates/index.html:132 templates/index.html:148 +#: templates/index.html:119 templates/index.html:134 templates/index.html:150 msgid "Yes" msgstr "Yes" -#: templates/index.html:125 +#: templates/index.html:127 msgid "Fixed order" msgstr "Fixed order" -#: templates/index.html:125 +#: templates/index.html:127 msgid "differentiate trees based on surface word order" msgstr "differentiate trees based on surface word order" -#: templates/index.html:141 +#: templates/index.html:143 msgid "Association measures" msgstr "Association measures" -#: templates/index.html:141 +#: templates/index.html:143 msgid "print MI, logDice and t-score" msgstr "print MI, logDice and t-score" -#: templates/index.html:158 +#: templates/index.html:160 msgid "Frequency threshold" msgstr "Frequency threshold" -#: templates/index.html:158 +#: templates/index.html:160 msgid "specify the minimum frequency of a tree in the treebank" msgstr "specify the minimum frequency of a tree in the treebank" -#: templates/index.html:168 +#: templates/index.html:170 msgid "Head" msgstr "Head" -#: templates/index.html:168 +#: templates/index.html:170 msgid "specify potential restrictions on the head node" msgstr "specify potential restrictions on the head node" -#: templates/index.html:179 +#: templates/index.html:176 +msgid "Query" +msgstr "" + +#: templates/index.html:176 +msgid "write a query. Note: Tree size attribute will be ignored!" +msgstr "" + +#: templates/index.html:180 +msgid "Upload a compare corpus" +msgstr "" + +#: templates/index.html:211 msgid "Submit" msgstr "" -#: templates/index.html:187 +#: templates/index.html:219 msgid "No results" msgstr "" -#: templates/index.html:188 +#: templates/index.html:220 msgid "Processing with your settings didnt produce any results!" msgstr "" -#: templates/result.html:30 +#: templates/result.html:32 msgid "Download complete results" msgstr "Download complete results" diff --git a/translations/sl/LC_MESSAGES/messages.mo b/translations/sl/LC_MESSAGES/messages.mo index 49144a7860e0cece2ebe93d312fb45742cf08a4c..657b1c5b236d2c0add8fcf6aab7cd94a155d7856 100644 GIT binary patch delta 21 ccmeAb>lNEDla<5BK*7+!%G7N0Le?Bs07RAr?*IS* delta 21 ccmeAb>lNEDla<5JQo+E|%G7-GLe?Bs07XIu00000 diff --git a/translations/sl/LC_MESSAGES/messages.po b/translations/sl/LC_MESSAGES/messages.po index b3c5862..68f8cf8 100644 --- a/translations/sl/LC_MESSAGES/messages.po +++ b/translations/sl/LC_MESSAGES/messages.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2024-02-19 09:57+0100\n" +"POT-Creation-Date: 2024-02-20 10:56+0100\n" "PO-Revision-Date: 2024-02-14 14:36+0100\n" "Last-Translator: FULL NAME \n" "Language-Team: sl \n" @@ -18,73 +18,77 @@ msgstr "" "n%100==4 ? 2 : 3);\n" "Generated-By: Babel 2.14.0\n" -#: app.py:202 app.py:203 +#: app.py:192 app.py:193 msgid "Please insert either input url or file, not both of them." msgstr "" -#: app.py:213 +#: app.py:203 app.py:297 msgid "Incorrect URL!" msgstr "" -#: app.py:215 app.py:216 +#: app.py:205 app.py:206 msgid "Please insert either input url or provide a file." msgstr "" -#: app.py:228 +#: app.py:218 msgid "Please provide information about minimum and maximum tree size." msgstr "" -#: app.py:232 +#: app.py:222 msgid "Tree size minimum should be smaller than tree size maximum." msgstr "" -#: app.py:243 +#: app.py:233 msgid "Please select at least one node type." msgstr "" -#: app.py:248 +#: app.py:238 msgid "Node option" msgstr "Vrsta vozlišč" -#: app.py:248 +#: app.py:238 msgid "is not supported. Please enter valid options." msgstr "" -#: app.py:292 +#: app.py:286 app.py:287 +msgid "Please insert either compare url or file, not both of them." +msgstr "" + +#: app.py:307 msgid "Please insert an Integer." msgstr "" -#: app.py:316 +#: app.py:331 msgid "" "Processing failed! Please recheck your settings, e.g. input format or head " "node description." msgstr "" -#: app.py:325 templates/about.html:16 templates/about.html:18 -#: templates/index.html:16 templates/index.html:18 templates/index.html:30 -#: templates/result.html:16 templates/result.html:18 +#: app.py:340 templates/about.html:18 templates/about.html:20 +#: templates/index.html:18 templates/index.html:20 templates/index.html:32 +#: templates/result.html:18 templates/result.html:20 msgid "code" msgstr "sl" -#: templates/about.html:18 templates/about.html:29 templates/index.html:18 -#: templates/result.html:18 +#: templates/about.html:20 templates/about.html:31 templates/index.html:20 +#: templates/result.html:20 msgid "About" msgstr "O orodju" -#: templates/about.html:19 templates/index.html:19 templates/result.html:19 +#: templates/about.html:21 templates/index.html:21 templates/result.html:21 msgid "switch_link" msgstr "?lang=en" -#: templates/about.html:20 templates/index.html:20 templates/result.html:20 +#: templates/about.html:22 templates/index.html:22 templates/result.html:22 msgid "switch_code" msgstr "EN" -#: templates/about.html:30 +#: templates/about.html:32 msgid "about_description" msgstr "" "Tukaj je opis pod 'O orodju', v katerem povemo več. Dodamo čisto na koncu." -#: templates/index.html:29 +#: templates/index.html:31 msgid "intro_description" msgstr "" "Tukaj je opis na vstopni spletni strani, ki pa ga Kaja pripravi šele na " @@ -92,140 +96,153 @@ msgstr "" "intuitivna na prvi pogled, lahko po vzoru drugih orodij CJVT vse skupaj " "premaknemo pod About." -#: templates/index.html:31 +#: templates/index.html:33 msgid "Input data" msgstr "Vhodni podatki" -#: templates/index.html:34 +#: templates/index.html:36 msgid "Upload a treebank" msgstr "Naloži korpus" -#: templates/index.html:34 +#: templates/index.html:36 templates/index.html:180 msgid "in CONLL-U format" msgstr "v formatu CONLL-U" -#: templates/index.html:34 templates/index.html:62 templates/index.html:70 -#: templates/index.html:110 templates/index.html:125 templates/index.html:141 -#: templates/index.html:158 templates/index.html:168 +#: templates/index.html:36 templates/index.html:64 templates/index.html:72 +#: templates/index.html:112 templates/index.html:127 templates/index.html:143 +#: templates/index.html:160 templates/index.html:170 templates/index.html:176 +#: templates/index.html:180 msgid "Help" msgstr "Pomoč" -#: templates/index.html:37 +#: templates/index.html:39 templates/index.html:183 msgid "Browse" msgstr "Izberi" -#: templates/index.html:41 +#: templates/index.html:43 templates/index.html:187 msgid "Upload" msgstr "Naloži datoteko" -#: templates/index.html:50 +#: templates/index.html:52 templates/index.html:197 msgid "Or" msgstr "Ali" -#: templates/index.html:50 +#: templates/index.html:52 templates/index.html:197 msgid "insert a URL link to a treebank in CONLL-U format" msgstr "prilepi povezavo URL do korpusa v formatu CONLL-U" -#: templates/index.html:50 +#: templates/index.html:52 templates/index.html:197 msgid "Example" msgstr "Primer" -#: templates/index.html:59 +#: templates/index.html:61 msgid "Tree specification" msgstr "Opredelitev dreves" -#: templates/index.html:62 +#: templates/index.html:64 msgid "Tree size" msgstr "Velikost drevesa" -#: templates/index.html:62 +#: templates/index.html:64 msgid "number of tokens in the tree" msgstr "število vozlišč (pojavnic) v drevesu" -#: templates/index.html:70 +#: templates/index.html:72 msgid "Node type" msgstr "Vrsta vozlišč" -#: templates/index.html:70 +#: templates/index.html:72 msgid "token characteristics to consider" msgstr "upoštevane lastnosti pojavnic" -#: templates/index.html:76 +#: templates/index.html:78 msgid "Part-of-speech" msgstr "Besedna vrsta" -#: templates/index.html:85 +#: templates/index.html:87 msgid "Lemma" msgstr "Lema" -#: templates/index.html:91 +#: templates/index.html:93 msgid "Form" msgstr "Oblika" -#: templates/index.html:105 +#: templates/index.html:107 msgid "Advanced settings" msgstr "Napredne nastavitve" -#: templates/index.html:110 +#: templates/index.html:112 msgid "Labeled trees" msgstr "Označena drevesa" -#: templates/index.html:110 +#: templates/index.html:112 msgid "include names of dependency relations" msgstr "izpis vrste odvisnostnih relacij med pojavnicami" -#: templates/index.html:114 templates/index.html:129 templates/index.html:145 +#: templates/index.html:116 templates/index.html:131 templates/index.html:147 msgid "No" msgstr "Ne" -#: templates/index.html:117 templates/index.html:132 templates/index.html:148 +#: templates/index.html:119 templates/index.html:134 templates/index.html:150 msgid "Yes" msgstr "Da" -#: templates/index.html:125 +#: templates/index.html:127 msgid "Fixed order" msgstr "Nespremenljiv besedni red" -#: templates/index.html:125 +#: templates/index.html:127 msgid "differentiate trees based on surface word order" msgstr "ločevanje dreves glede na vrstni red pojavnic v besedilu" -#: templates/index.html:141 +#: templates/index.html:143 msgid "Association measures" msgstr "Mere povezovalnosti" -#: templates/index.html:141 +#: templates/index.html:143 msgid "print MI, logDice and t-score" msgstr "izpiši vrednosti MI, logDice in t-test" -#: templates/index.html:158 +#: templates/index.html:160 msgid "Frequency threshold" msgstr "Frekvenčni prag" -#: templates/index.html:158 +#: templates/index.html:160 msgid "specify the minimum frequency of a tree in the treebank" msgstr "najmanjše število pojavitev drevesa v korpusu" -#: templates/index.html:168 +#: templates/index.html:170 msgid "Head" msgstr "Jedro" -#: templates/index.html:168 +#: templates/index.html:170 msgid "specify potential restrictions on the head node" msgstr "zamejitev izpisa glede na lastnosti jedrne pojavnice" -#: templates/index.html:179 +#: templates/index.html:176 +msgid "Query" +msgstr "" + +#: templates/index.html:176 +msgid "write a query. Note: Tree size attribute will be ignored!" +msgstr "" + +#: templates/index.html:180 +msgid "Upload a compare corpus" +msgstr "" + +#: templates/index.html:211 msgid "Submit" msgstr "" -#: templates/index.html:187 +#: templates/index.html:219 msgid "No results" msgstr "" -#: templates/index.html:188 +#: templates/index.html:220 msgid "Processing with your settings didnt produce any results!" msgstr "" -#: templates/result.html:30 +#: templates/result.html:32 msgid "Download complete results" msgstr "Prenesi datoteko s celotnimi rezultati"