Update of /cvsroot/monetdb/pathfinder/modules/pftijah/Tests
In directory
sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv478/modules/pftijah/Tests
Added Files:
Tag: XQFT
fbterms.xq
Log Message:
propagated changes of Wednesday Jan 06 2010 - Thursday Jan 07 2010
from the development trunk to the XQFT branch
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2010/01/06 - hrode: modules/pftijah/Tests/fbterms.xq,1.1
added implementation for tijah:fb-terms()
the current implementation follows the divergation minimization approach of
zhai and lafferty to find the best feeback terms.
used parameters: returnNumber and collection-lambda.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--- NEW FILE: fbterms.xq ---
let $d := pf:collection("thesis.xml")
let $opt1 := <TijahOptions ft-index="porter" returnNumber="4"/>
let $opt2 := <TijahOptions ft-index="snowball" returnNumber="4"/>
let $opt3 := <TijahOptions ft-index="nostem" returnNumber="4"/>
let $opts := ($opt1, $opt2, $opt3)
return <res>
{
for $opt in $opts
for $e in $d//section
return <bubble stemming="{$opt/@ft-index}"> { tijah:fb-terms($e, $opt) }
</bubble>
}
</res>
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins