"be consistent" | |
PerlMonks |
Re: Re: Re: Re: Re: Refining a 'vector space search'.by gjb (Vicar) |
on Jun 28, 2003 at 19:45 UTC ( [id://269924]=note: print w/replies, xml ) | Need Help?? |
This depends on the algorithm. Some information retrieval algorithms just work with boolean values, others keep track of the frequency of a term in a document. If you want to keep track of the frequencies, you can either store position/frequency pairs or use two lists, one for the position, the other for the frequencies. The former approach is cleaner, the latter should be faster. Hope this helps, -gjb-
In Section
Seekers of Perl Wisdom
|
|