Search by "sentence"

Bug #794922 reported by Thomas Krause on 2011-06-09
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ANNIS
Triaged
Medium
Unassigned

Bug Description

Many users want to search treebanks with the context "sentence". Unfortunately the annotation that marks sentences is arbitrary (e.g. cat="S", cat="ROOT", seg="sent"...)

To make sentence search possible, we must be able to configure for each corpus (e.g. in the resolver) the annotation name which marks sentences. When sentence-based searching is activated, this annotation is then automatically added to the search as follows:

sentence-anno: cat="ROOT"
original AQL: cat="NP" & "Hund" & #1 > #2
modified AQL: cat="NP" & "Hund" & #1 > #2 & cat="ROOT" & #3 _i_ #1

The modified AQL is not displayed in the AQL box but sent in the background. Context is automatically set to zero on both sides when sentence-based search is enabled. There should be a checkbox to enable this called something like:

"Search for whole sentences (where available)"

This checkbox can be hidden by the admin if no corpora in the current instance support sentence-based searching.

Thomas Krause (krause) on 2011-06-09
tags: added: database frontend service
Thomas Krause (krause) wrote :

Since we now support multiple segmentation we could also add artificial "sentence" segmentations with a Pepper manipulator and use this information. Since you can use the segmentation layer in the context stuff like "show me the match + 2 sentences left and right" would be possible.

Thomas Krause (krause) on 2012-07-26
Changed in annis:
milestone: 3.0.0-beta2 → 3.0.0
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers