word space transformations

30 views
Skip to first unread message

wlf...@gmail.com

unread,
Oct 14, 2014, 9:41:37 AM10/14/14
to s-spac...@googlegroups.com
Hi,

I want to built a word co-occurence space and use a pmi-weighting for the counts. I built a word co-occurence space with the help of GenericWordSpace, but I just can't figure out how to plug things together to be able transform my space with the help of the PointwiseMutualInformationTransform. What is the way to go?

Thanks and sorry if I'm missing something obvious,

Stefanie




David Jurgens

unread,
Oct 15, 2014, 8:54:29 AM10/15/14
to s-spac...@googlegroups.com
Hi Stefanie,

  Applying a transform to a generic word space is something we should already be supporting but it looks like there's no direct way to do it.  I think this functionality should be fairly quick to implement, so I'll see if I can get it done today.

  Thanks,
  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.

Stefanie Wolf

unread,
Oct 17, 2014, 7:58:36 AM10/17/14
to s-spac...@googlegroups.com
Thanks, it would be very useful!

Stefanie Wolf

unread,
Nov 18, 2014, 4:31:36 AM11/18/14
to s-spac...@googlegroups.com
Hi David,

I just wanted to ask if you have made any updates for this issue.

Best,
Stefanie

David Jurgens

unread,
Nov 19, 2014, 6:33:48 PM11/19/14
to s-spac...@googlegroups.com
Hi Stefanie,

  Sorry for the delay!  The code for performing the transform is now tested and checked into the trunk.  Please let me know if you run into any issues with it and thanks for the suggested improvement!

  Best,
  David

Stefanie Wolf

unread,
Jan 19, 2015, 7:29:13 AM1/19/15
to s-spac...@googlegroups.com
Hi David,

thanks a lot. When I tested it on a small example I could see that all the values turned into zero. I solved the problem by using SparseHashdoubleVector in the processSpace-method.

vectorsInOrder.add(new SparseHashDoubleVector(Vectors.asDouble(
                Vectors.subview(e.getValue(), 0, getVectorLength()))));

Let me know if there is anything wrong with doing this.


Best,
Stefanie
Reply all
Reply to author
Forward
0 new messages