lemmatisation

Thursday, 14 April 2011 · 1 message
CG
Christian Grün14 Apr 2011 13:32 #
Dear Xavier, thanks for your request; due to time constraints, I'm passing this on to the list.. Hope someone helps; otherwise, please ask again, Christian
Quoted text · xavier-laurent salvador · 63 lines
On Thu, Apr 14, 2011 at 11:49 AM, xavier-laurent salvador <xavier-laurent.salvador at univ-paris13.fr> wrote: > Sorry for the send, here is my right xquery routine: > > <texte> { > for $dic in db:open('dictionary')//entry[pos contains text "Advb." ftor > "Conj." any word]/orth return > <res> > > Resultat: {$dic}: > { > let $s:= ft:mark(//*[text() contains text {$dic} using case > insensitive using wildcards], 'advb') > let $sv := $s//advb > return <ff>{$s}</ff>} > </res> > } > </texte> > > > Hello again, > could you give me an advice, please ? > I'm trying to integrate basex in a lexicographic project. Server an >> bindings are useful and ok. >> What i would like to do is crossing the datas of a db (="dictionary") >> with the tokens of another db(="text"): for all the adverbs of my >> dictionary, i want a mark around the token in the text. >> What i get is a new instance of my text, with <mark/> around the lemma, >> for every adverbs of the dictionary. 15 adverbs, 15 times the text. >> >> 'dictionary is <entry><orth>xxx</orth><pos>Advb.</pos></entry> >> 'text' is <root><texte><localisation>1</localisation>Donc dist alors li >> heros a ses amis</texte></root> >> >> here is my routine ('text' is already db:open): >> >> <texte> { >> for $dic in db:open('dictionary')//entry[pos contains text "Advb." ftor >> "Conj." any word]/orth return >> <res> >> >> Resultat: {$dic}: >> { >> let $s:= ft:mark(//*[text() contains text {$dic} using case >> insensitive using wildcards], 'advb') >> let $sv := $s//advb >> return <ff>{$s}</ff>} >> </res> >> } >> </texte> >> >> I tried with tumbling window, but couldn't with basex. >> Do you have an advice, please ? >> >> Thank you by advance and congratulations again for your great work, >> >> xls >> >> > > > >

⚡Generated with XQuery