Github user jyshen15 commented on the pull request:

    https://github.com/apache/spark/pull/11812#issuecomment-200416321
  
    @MLnick cool! It actually comes down to the question that what should the 
`getVectors ` outputs? If the equation ` getVectors("Paris") - 
getVectors("France") + getVectors("Italy") = getVectors("Rome") ` 
holds,`getVectors` needs to output the normalized vector. If that is the case, 
we can add one more interface `getOriginalVectors()` to output the unnormalized 
vector, including the information of frequency of the word.
    
    So, is it good to do as follows:
    
    1. `getVectors()` outputs the normalized vector
    2. Add one new `getOriginalVectors()`
    3. `findSynonyms()` gives the similarity score between 0 and 1. It should 
also considers the case that the input vector is not normalized.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to