Commit b818f8bc authored by hiphop's avatar hiphop

exception added

parent b0d8c8d9
...@@ -518,6 +518,10 @@ def nlp_def_extraction_patterns2(input_dict): ...@@ -518,6 +518,10 @@ def nlp_def_extraction_patterns2(input_dict):
lang = input_dict['lang'] lang = input_dict['lang']
pattern = input_dict['pattern'] pattern = input_dict['pattern']
if lang == "sl" and pattern == "begin_allvar":
raise Exception("Pattern begin_allvar is not supported for slovene language.")
if '<TEI xmlns="http://www.tei-c.org/ns/1.0">' in annotations: if '<TEI xmlns="http://www.tei-c.org/ns/1.0">' in annotations:
annotations = TEItoTab(annotations) annotations = TEItoTab(annotations)
......
...@@ -147,7 +147,7 @@ ...@@ -147,7 +147,7 @@
"model": "workflows.abstractinput", "model": "workflows.abstractinput",
"fields": { "fields": {
"widget": "09d72ebd-2eaf-47f6-95e0-2f2ed0c51ea2", "widget": "09d72ebd-2eaf-47f6-95e0-2f2ed0c51ea2",
"name": "Nominatives", "name": "Nominatives (only for Slovene)",
"short_name": "nom", "short_name": "nom",
"default": "0", "default": "0",
"description": "", "description": "",
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
"model": "workflows.abstractinput", "model": "workflows.abstractinput",
"fields": { "fields": {
"widget": "f3e3b0c7-39e1-4e7e-ba94-514d13864823", "widget": "f3e3b0c7-39e1-4e7e-ba94-514d13864823",
"name": "Pre-defined patterns", "name": "Predefined patterns",
"short_name": "pat", "short_name": "pat",
"default": "begin_novar", "default": "begin_novar",
"description": "Pre-defined patterns", "description": "Pre-defined patterns",
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
"parameter_type": "select", "parameter_type": "select",
"variable": "pattern", "variable": "pattern",
"parameter": true, "parameter": true,
"order": 1, "order": 3,
"uid": "687262b9-e21f-4279-8a72-e017b5ed9e72" "uid": "687262b9-e21f-4279-8a72-e017b5ed9e72"
} }
}, },
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
"parameter_type": "select", "parameter_type": "select",
"variable": "lang", "variable": "lang",
"parameter": true, "parameter": true,
"order": 1, "order": 2,
"uid": "dcfab65d-8fe9-4b8f-b2c5-fe3a93274453" "uid": "dcfab65d-8fe9-4b8f-b2c5-fe3a93274453"
} }
}, },
...@@ -108,7 +108,7 @@ ...@@ -108,7 +108,7 @@
{ {
"model": "workflows.abstractoption", "model": "workflows.abstractoption",
"fields": { "fields": {
"name": "Begin allvar", "name": "Begin allvar (only for English)",
"uid": "5c6c3598-8a05-4918-9c38-992202d16fc9", "uid": "5c6c3598-8a05-4918-9c38-992202d16fc9",
"value": "begin_allvar", "value": "begin_allvar",
"abstract_input": "687262b9-e21f-4279-8a72-e017b5ed9e72" "abstract_input": "687262b9-e21f-4279-8a72-e017b5ed9e72"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment