Code Monkey home page Code Monkey logo

Comments (3)

DeNeutoy avatar DeNeutoy commented on August 25, 2024

Hi!

To do this faster, you should batch them together and compute the result using a matrix multiplication, which you can speed up by using a GPU, for example.

More generally you should be a little careful of relying on the document vectors of spacy models, as I think they are just word vector averages. Also note that the scispacy med model only has 20k vectors, which is not a huge amount, so many words will be OOV (i.e not have a vector). Is a large model (~2GB with vectors) something that you would be interested in?

from scispacy.

meaningfromdata avatar meaningfromdata commented on August 25, 2024

Thanks for reply. This post on stackexchange which uses matrix multiplication via numpy is significantly boosting speed: https://stackoverflow.com/questions/41905029/create-cosine-similarity-matrix-numpy?rq=1

I would be interested in larger vector models. I realize there are caveats to using them but am trying to pair them with other features to cluster/classify biomedical documents.

from scispacy.

DeNeutoy avatar DeNeutoy commented on August 25, 2024

Cool, i'll bear that in mind for what to work on for the next release!

from scispacy.

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.