You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//node[@cat="smain" and @rel="--" and
node[@rel="su" and number(@begin) < ../node[@pt="ww" and @rel="hd"]/number(@begin)] and
node[@pt="ww" and @rel="hd" and number(@begin) < ../node[@rel="obj1"]/number(@begin)] and
node[@rel="obj1"]]
For instance: order preserved search based on the example "Ik eet kaas" in CGN: (https://gretel5.hum.uu.nl/example-based-search?currentStep=4&xpath=%2F%2Fnode%5B@cat%3D%22smain%22%20and%20@rel%3D%22--%22%20and%0A%20%20%20%20node%5B@rel%3D%22su%22%20and%20number(@begin)%20%3C%20..%2Fnode%5B@pt%3D%22ww%22%20and%20@rel%3D%22hd%22%5D%2Fnumber(@begin)%5D%20and%0A%20%20%20%20node%5B@pt%3D%22ww%22%20and%20@rel%3D%22hd%22%20and%20number(@begin)%20%3C%20..%2Fnode%5B@rel%3D%22obj1%22%5D%2Fnumber(@begin)%5D%20and%0A%20%20%20%20node%5B@rel%3D%22obj1%22%5D%5D&selectedTreebanks=%7B%22gretel%22:%7B%22cgn%22:%5B%22cgn-na%22,%22cgn-va%22,%22cgn-nb%22,%22cgn-vb%22,%22cgn-nc%22,%22cgn-vc%22,%22cgn-nd%22,%22cgn-vd%22,%22cgn-ne%22,%22cgn-ve%22,%22cgn-nf%22,%22cgn-vf%22,%22cgn-ng%22,%22cgn-vg%22,%22cgn-nh%22,%22cgn-vh%22,%22cgn-ni%22,%22cgn-vi%22,%22cgn-nj%22,%22cgn-vj%22,%22cgn-nk%22,%22cgn-vk%22,%22cgn-nl%22,%22cgn-vl%22,%22cgn-nm%22,%22cgn-vm%22,%22cgn-nn%22,%22cgn-vn%22,%22cgn-no%22,%22cgn-vo%22%5D%7D%7D&retrieveContext=0&inputSentence=Ik%20eet%20kaas&isCustomXPath=0&attributes=~pt::~pt&respectOrder=1&ignoreTopNode=0), no results.
The generated xpath looks OK:
In GrETEL 4 I do get results (https://gretel.hum.uu.nl/ng/example-based-search?currentStep=4&xpath=%2F%2Fnode%5B@cat%3D%22smain%22%20and%0A%20%20%20%20node%5B@rel%3D%22su%22%20and%20number(@begin)%20%3C%20..%2Fnode%5B@pt%3D%22ww%22%20and%20@rel%3D%22hd%22%5D%2Fnumber(@begin)%5D%20and%0A%20%20%20%20node%5B@pt%3D%22ww%22%20and%20@rel%3D%22hd%22%20and%20number(@begin)%20%3C%20..%2Fnode%5B@rel%3D%22obj1%22%5D%2Fnumber(@begin)%5D%20and%0A%20%20%20%20node%5B@rel%3D%22obj1%22%5D%5D&selectedTreebanks=%7B%22gretel%22:%7B%22cgn%22:%5B%22CGN_ID_NA%22,%22CGN_ID_VA%22,%22CGN_ID_NB%22,%22CGN_ID_VB%22,%22CGN_ID_NC%22,%22CGN_ID_VC%22,%22CGN_ID_VD%22,%22CGN_ID_NE%22,%22CGN_ID_NF%22,%22CGN_ID_VF%22,%22CGN_ID_NG%22,%22CGN_ID_VG%22,%22CGN_ID_NH%22,%22CGN_ID_VH%22,%22CGN_ID_VI%22,%22CGN_ID_NI%22,%22CGN_ID_VJ%22,%22CGN_ID_NJ%22,%22CGN_ID_NK%22,%22CGN_ID_VK%22,%22CGN_ID_NL%22,%22CGN_ID_VL%22,%22CGN_ID_NM%22,%22CGN_ID_VM%22,%22CGN_ID_NN%22,%22CGN_ID_VN%22,%22CGN_ID_VO%22%5D%7D%7D&retrieveContext=0&inputSentence=Ik%20eet%20kaas&isCustomXPath=0&attributes=~pt::~pt&respectOrder=1&ignoreTopNode=0)
The text was updated successfully, but these errors were encountered: