Henning, could you please also provide / approved the expected/correct stable output for your new tests? Thanks! Stefan On Tue, Dec 22, 2009 at 11:49:07AM +0000, Henning Rode wrote:
Update of /cvsroot/monetdb/pathfinder/modules/pftijah/Tests In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv29234
Added Files: options_test.xq.in terms2.xq terms3.xq terms4.xq terms_tf.xq tf1.xq tf2.xq tfall.xq Log Message: adding test cases for new functions
--- NEW FILE: tfall.xq --- let $d := pf:collection("thesis.xml") let $opt := <TijahOptions ft-index="snowball"/> let $e := $d//thesis for $s in ("XML","Tijah","Pathfinder") return (tijah:tf-all($s, $opt), tijah:tf($e, $s, $opt))
--- NEW FILE: terms4.xq --- let $d := pf:collection("thesis.xml") let $opt1 := <TijahOptions ft-index="porter"/> let $opt2 := <TijahOptions ft-index="snowball"/> let $opt3 := <TijahOptions ft-index="nostem"/> let $opts := ($opt1, $opt2, $opt3) return <res> { for $opt in $opts for $e in $d//section return <section stemming="{$opt/@ft-index}"> { tijah:terms($e, $opt) } </section> } </res>
--- NEW FILE: tf1.xq --- let $d := pf:collection("thesis.xml") let $opt := <TijahOptions ft-index="snowball"/> let $e := $d//section for $s in ("XML","Tijah") return tijah:tf($e, $s, $opt)
--- NEW FILE: tf2.xq --- let $d := pf:collection("thesis.xml") let $opt := <TijahOptions ft-index="snowball"/> let $s := "XML" for $e in $d//section return tijah:tf($e, $s, $opt)
--- NEW FILE: terms_tf.xq --- let $d := pf:collection("thesis.xml") let $opt := <TijahOptions stemmedterms="true" ft-index="snowball"/> return <terms> { for $e at $r in $d//section return <section num="{$r}"> { for $t in tijah:terms($e, $opt) return <term name="{$t}"> {tijah:tf($e, $t, $opt)} </term> } </section> } </terms>
--- NEW FILE: options_test.xq.in --- tijah:create-ft-index( ("thesis.xml"), <TijahOptions ft-index="porter" tokenizer="fast" stemmer="porter-english" /> ) <> tijah:create-ft-index( ("thesis.xml"), <TijahOptions ft-index="snowball" stemmer="snowball-english" /> ) <> tijah:create-ft-index( ("thesis.xml"), <TijahOptions ft-index="nostem" /> )
--- NEW FILE: terms3.xq --- let $d := pf:collection("thesis.xml") let $opt := <TijahOptions ft-index="snowball"/> return <res> { for $e in $d//section return <section> { tijah:terms($e, $opt) } </section> } </res>
--- NEW FILE: terms2.xq --- let $d := pf:collection("thesis.xml") let $opt := <TijahOptions ft-index="snowball"/> return tijah:terms($d//section, $opt)
------------------------------------------------------------------------------ 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 Monetdb-pf-checkins@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins
-- | Dr. Stefan Manegold | mailto:Stefan.Manegold@cwi.nl | | CWI, P.O.Box 94079 | http://www.cwi.nl/~manegold/ | | 1090 GB Amsterdam | Tel.: +31 (20) 592-4212 | | The Netherlands | Fax : +31 (20) 592-4199 |