Questions tagged [vsm]

40 questions
55
votes
5 answers

Simple implementation of N-Gram, tf-idf and Cosine similarity in Python

I need to compare documents stored in a DB and come up with a similarity score between 0 and 1. The method I need to use has to be very simple. Implementing a vanilla version of n-grams (where it possible to define how many grams to use), along…
seanieb
  • 1,196
  • 2
  • 14
  • 36
42
votes
6 answers

Cosine similarity and tf-idf

I am confused by the following comment about TF-IDF and Cosine Similarity. I was reading up on both and then on wiki under Cosine Similarity I find this sentence "In case of of information retrieval, the cosine similarity of two documents will…
N00programmer
  • 1,111
  • 4
  • 13
  • 17
18
votes
4 answers

What is the replacement for DataTrigger in Silverlight

This is my scenario. I have 2 Properties. Type and State. Type is an Enum with 3 values eg, ball, car, arrow. State is an int which would accept 3 state values eg., -1, 0, 1. Also, I have 9 images for each state values. Like, if I select type as…
Prince Ashitaka
  • 8,623
  • 12
  • 48
  • 71
11
votes
1 answer

VisualStateManager and generated transitions

Just when I think I understand the VisualStateManager, something proves me wrong. I'm using WPF 4 and am trying to simply enlarge an item on mouse over, and shrink it back on mouse leave. I figured I'd just define each state in a VisualStateGroup…
9
votes
1 answer

Problem setting Foreground with Visual State Manager

I have a WPF application, and I am attempting to style a TextBox using the .Net v4 Visual State Manager. Specifically, I am attempting to set the colors of the Foreground and Background for the MouseOver state. What is happening is that, while the…
David Mullin
  • 688
  • 1
  • 8
  • 21
5
votes
3 answers

Expression Blend VSM vs Event Driven

I recently used Expression Blend and I found that it has something called Visual State Manager, what is the difference between it and the regular event driven model, and which is better?
5
votes
2 answers

Visual State Manager on Custom Control

I have built a custom control that extends content control. Within this I have a parts and states model that is working fine. I then use this as the root of my xaml(placing the code in the templates folder in Blend) Everything works fine, I can open…
DavidA
  • 467
  • 1
  • 4
  • 14
4
votes
1 answer

ControlTemplate.Triggers WPF equivalent in Silverlight 3

I have this controltempalte + trigger stuff in my WPF application.
SL3NewUser
4
votes
1 answer

Animate TranslateTransform.Y to a control's height (purpose is to slide element off sight)

Given: Control (x:Name="border1") with a VisualStateManager. Control's RenderTransform is set to a TransformGroup that contains a TranslateTransform. In VisualState "NotShown", TranslateTransforms Y property should be animated to a Value that is (at…
3
votes
2 answers

Text Retrieval using R

I have been using R's text mining package and its really a great tool. I have not found retrieval support or maybe there are functionalities I am missing. How can a simple VSM model be implemented using the R's text mining package?
Shivani Rao
  • 71
  • 1
  • 2
  • 5
3
votes
1 answer

OpenGL Variance Shadow Mapping inverted falloff

I'm trying to implement Variance Shadow Map techniqe with OpenGL API. I have been using tutorial (Fabien Sanglard's Soft shadows with VSM) and followed every step, but my shadowmap looks kind of weird. The main thing i've noticed is that when i…
3
votes
1 answer

Normalizing Vectors with Negative values

I want to represent each text-based item I have in my system as a vector in vector space model. The values for the terms can be negative or positive that reflect the frequency of a term in the positive or negative class. The zero value means neutral…
Haifa
  • 51
  • 1
  • 4
3
votes
3 answers

WPF and VSM - List of States?

I'm using VSM (Visual State Manager, from the WPF Toolkit) in WPF and I'm trying to find a list of States. Basically, I understand that there are certain "magic" states - like the MouseOver state is automatically applied when the control is moused…
Andrew Dunkman
  • 1,131
  • 2
  • 8
  • 18
2
votes
1 answer

Re-templating built in WPF controls using Visual State Manager

I am developing an application in WPF and would like to use to re-template built in controls (Button,ListBox, etc) using the VSM instead of triggers. Is there a built in way to do this? Anyone have any implementation strategies they'd like to…
Brian
  • 6,910
  • 8
  • 44
  • 82
2
votes
0 answers

Lucene BM25 Scoring

Im trying to use Lucene for calculating similarities on a number of Documents. For the similarity calculation im using the BM25 und the VSM. Besides Lucene Im using GATE, an OpenSource Framework that performs Language Processing tasks. When Im…
PaulSchell
  • 182
  • 2
  • 10
1
2 3