Help in Options for combining term vectors- LSA

9 views
Skip to first unread message

Ibtehal Baazeem

unread,
May 11, 2015, 1:10:52 AM5/11/15
to s-space-re...@googlegroups.com, s-spac...@googlegroups.com, jur...@cs.ucla.edu
Dear S-Space developers , 

I have a question regarding document representation in Latent Semantic Analysis:



It is written that “Options for combining term vectors include summation, average, and term frequency weighting”, but I just found how to use term frequency option. 


I am currently using term frequencies,

  Properties vectProp=new Properties();
  
    //The property to specify if term frequencies should be used when combining term vectors.
      vectProp.setProperty("USE_TERM_FREQUENCIES_PROPERTY","edu.ucla.sspace.common.DocumentVectorBuilder.usetf”);

                DocumentVectorBuilder builder = new DocumentVectorBuilder(sspace,vectProp);


Could you advise how to use the average weighting ASAP?


Many Thanks,

David Jurgens

unread,
May 11, 2015, 10:17:12 AM5/11/15
to s-spac...@googlegroups.com
Hi Ibtehal,

  I think you are setting the property incorrectly.  You need to use the value of that class's field as the key and set it to true:

vectProp.setProperty(DocumentVectorBuilder.USE_TERM_FREQUENCIES_PROPERTY", "true");

  Is this what you are asking?

  Also, please only use one mailing list for asking questions.
 
  Best,
  David

--

---
You received this message because you are subscribed to the Google Groups "S-Space Package Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to s-space-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages