TREC tool

37 views
Skip to first unread message

Tobias Wäsche

unread,
May 7, 2012, 4:05:48 PM5/7/12
to FIRE - Flexible Image Retrieval Engine
Hi all,

I'm searching for the phyton tool that generates TREC files Mr.
Deselaers mentioned in the post from 14. Jan 2010

"For this you need to create files in TREC submission format.
I should also have a python tool that generates TREC files with a list
of queries and a FIRE Server. I will try to put this into the FIRE
repository tonight."

Can't find it in the Fire version 2.3 but it would be so helpful.

Yours sincerely,
Tobi

Thomas Deselaers

unread,
May 7, 2012, 4:19:59 PM5/7/12
to fire...@googlegroups.com
Hi, 

the best I found is this shell script:

#!/bin/bash

WPATH=PUT_YOUR_PATH_HERE
PREFIX=""
POSTFIX=.JPG.ranks


for q in `/usr/bin/seq 1 1 26` ; do
  filename=${WPATH}${PREFIX}${q}${POSTFIX}
  cat $filename | grep -v '#' | grep -v '/Query/' | sed -e 's:/u/europium/deselaers/st.andrews/::' | head -n 1000 |awk '{
      printf "%-3i 1 %-40s %5i %8.5f i6qe02100010\n",'$q',$2,FNR-1,$3
  }'
done

but it's probably better to write your own.

t.



--
You received this message because you are subscribed to the Google Groups "FIRE - Flexible Image Retrieval Engine" group.
To post to this group, send email to fire...@googlegroups.com.
To unsubscribe from this group, send email to fire-cbir+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/fire-cbir?hl=en.

--
http://thomas.deselaers.de

Reply all
Reply to author
Forward
0 new messages