Number of documents returned

29 views
Skip to first unread message

TopicModeler

unread,
Apr 7, 2018, 12:29:43 PM4/7/18
to Semantic Vectors
When performing a document search, I notice that the program always returns 20 documents.  This occurs whether I use semantic vectors or traditional LSA to build the index.  Is there a way to control how many documents are returned?  What I would like to do is to set the cutoff at 0 cosine similarity and this cutoff may occur at less than or more than 20 documents.  I can't find this in the code anywhere.

Trevor Cohen

unread,
Apr 7, 2018, 12:43:49 PM4/7/18
to semanti...@googlegroups.com
These command line flags might do the trick:

-searchresultsminscore 0

or

-numsearchresults 40

I expect you'll get back too many results to explore with a minimum threshold of zero, though.

-Trevor

On Sat, Apr 7, 2018 at 11:29 AM, TopicModeler <mchi...@k-state.edu> wrote:
When performing a document search, I notice that the program always returns 20 documents.  This occurs whether I use semantic vectors or traditional LSA to build the index.  Is there a way to control how many documents are returned?  What I would like to do is to set the cutoff at 0 cosine similarity and this cutoff may occur at less than or more than 20 documents.  I can't find this in the code anywhere.

--
You received this message because you are subscribed to the Google Groups "Semantic Vectors" group.
To unsubscribe from this group and stop receiving emails from it, send an email to semanticvectors+unsubscribe@googlegroups.com.
To post to this group, send email to semanticvectors@googlegroups.com.
Visit this group at https://groups.google.com/group/semanticvectors.
For more options, visit https://groups.google.com/d/optout.

TopicModeler

unread,
Apr 7, 2018, 5:55:14 PM4/7/18
to Semantic Vectors
Worked great!  Thanks.


On Saturday, April 7, 2018 at 11:43:49 AM UTC-5, Trevor Cohen wrote:
These command line flags might do the trick:

-searchresultsminscore 0

or

-numsearchresults 40

I expect you'll get back too many results to explore with a minimum threshold of zero, though.

-Trevor
On Sat, Apr 7, 2018 at 11:29 AM, TopicModeler <mchi...@k-state.edu> wrote:
When performing a document search, I notice that the program always returns 20 documents.  This occurs whether I use semantic vectors or traditional LSA to build the index.  Is there a way to control how many documents are returned?  What I would like to do is to set the cutoff at 0 cosine similarity and this cutoff may occur at less than or more than 20 documents.  I can't find this in the code anywhere.

--
You received this message because you are subscribed to the Google Groups "Semantic Vectors" group.
To unsubscribe from this group and stop receiving emails from it, send an email to semanticvecto...@googlegroups.com.
To post to this group, send email to semanti...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages