Code Monkey home page Code Monkey logo

Comments (8)

jwijffels avatar jwijffels commented on August 18, 2024 1

I think you can. Haven't done this myself but I think you can summate/subtract the different embeddings of the different words in order to achieve what you are looking for.

from ruimtehol.

rdatasculptor avatar rdatasculptor commented on August 18, 2024

Thanks! I will give it a try somehow. Any chance of adding this as a feature to the predict function? Something like predict(model, text, exclude_docs=text, k=3)

from ruimtehol.

jwijffels avatar jwijffels commented on August 18, 2024

Maybe I'm misunderstanding the question. Predict already has argument basedoc which allows a similar thing to limit the prediction to that set of docs you provide in basedoc only (maybe not in the trainmode setting however that you refer to)

from ruimtehol.

rdatasculptor avatar rdatasculptor commented on August 18, 2024

I was aware of basedoc. I am just looking for a possibility to find similar documents while taking into account some dissimilar basedocs. I am sorry my question was not clear.

from ruimtehol.

jwijffels avatar jwijffels commented on August 18, 2024

why not just filter these out from basedoc by finding similarity from the text in basedoc and other docs which you do not want in

from ruimtehol.

rdatasculptor avatar rdatasculptor commented on August 18, 2024

I will figure some things out. Thanks!

from ruimtehol.

rdatasculptor avatar rdatasculptor commented on August 18, 2024

In addition to the question I asked above I want to give an example from word2vec tutorials. What I meant to say was, is it possible to do something like France + Berlin - Germany = Paris on a sentence or article level with Ruimtehol?

from ruimtehol.

jwijffels avatar jwijffels commented on August 18, 2024

Yes.

from ruimtehol.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.