ufal / lindat-kontext

An alternative web front-end for the Manatee corpus search engine
GNU General Public License v2.0
5 stars 1 forks source link

syntax viewer complains of short context #223

Open Ansa211 opened 5 years ago

Ansa211 commented 5 years ago

The registry file specifies the following values:

MAXCONTEXT=500
MAXDETAIL=500

The query I use specifically asks for sentences of length at most 10: [lemma="domus"] within (<s> []{1,10} </s>) And yet the syntax-viewer complains about too long sentences: error,Failed to get the syntax tree due to limited KWIC context (too long sentence). context

This is on kontext-staging/ansa The corpus is Summa Theologiae. The location of the registry file on kontext-dev is /export/KONTEXT/kontext-dev/corpora/registry/summa_la_a The location of the syntax-viewer configuration file is /opt/kontext-ansa/configs/syntax-viewer.json The configuration for the summa_la_a corpus is as follows:

    "summa_la_a": {
       "sentenceStruct": "s",
       "emptyValuePlaceholders": ["_"],
       "trees": [
         {
           "id": "default",
           "name": "Default",
           "wordAttr": "word",
           "parentAttr": "parent_id",
           "labelTemplates": ["#{#009EE0}%s","#{#010101}%s","#{#010101}%s","#{#009EE0}%s"],
           "layerType": "t",
           "detailAttrs": ["*"],
           "nodeAttrs": ["word","deprel","upos","lemma"],
           "rootNode": {
             "id": "root",
             "word": "#",
             "parent": null
           }
         }
       ]
     },