Code Monkey home page Code Monkey logo

Comments (17)

keithwhor avatar keithwhor commented on June 12, 2024

Hey @LemonAndroid, we can't fix this without steps to reproduce the bug. Please include them and we will look into it πŸ™‚.

from cli.

 avatar commented on June 12, 2024

from cli.

keithwhor avatar keithwhor commented on June 12, 2024

I'm sorry? I don't understand.

from cli.

 avatar commented on June 12, 2024

from cli.

 avatar commented on June 12, 2024

from cli.

keithwhor avatar keithwhor commented on June 12, 2024

I'm sorry, there's not enough information here for our team to reliably reproduce a bug. If you can give a description of the bug and the exact steps (i.e. a minimal example) to recreate it ourselves we can certainly help. This includes a list of steps for us to follow and / or example code that will generate the bug you're encountering, including expected output and actual (buggy) output.

@notoriaga and / or @jacoblee93 will be able to fix it from there. πŸ™‚Thanks!

from cli.

 avatar commented on June 12, 2024

from cli.

jacoblee93 avatar jacoblee93 commented on June 12, 2024

It seems to work fine for me: http://jacoblee.lib.id/word2vec@dev/?word=test

Is there something else you're expecting here?

from cli.

 avatar commented on June 12, 2024

from cli.

jacoblee93 avatar jacoblee93 commented on June 12, 2024

Oh, I just reread your comment and you tried uploading your code from code.stdlib.com. Yes, I'm seeing Could not find vector for word test, is this what you're seeing?

If you just need to get unblocked for now, I tried successfully from the CLI first.

from cli.

 avatar commented on June 12, 2024

from cli.

jacoblee93 avatar jacoblee93 commented on June 12, 2024

Odd. Here's the working code I deployed with the CLI:

const word2vec = require('word2vec-pure-js');

/**
* A simple "hello world" function
*/
module.exports = async (word = 'test') => {
  word2vec.load('./test-text8-vector.bin');
  let result = word2vec.getSimilarWords(word);
  return result;
};

The output is: ["testing","tests","stoppage","tested","upshot","termination","piggyback","primality","flight","standby"] (https://jacoblee.lib.id/word2vec@dev/)

And I'm using "word2vec-pure-js": "0.0.2"

Is this the way you expect it to be used?

from cli.

jacoblee93 avatar jacoblee93 commented on June 12, 2024

I just tried the above successfully on code.stdlib.com as well, I think I may have had a typo in my initial attempt, especially if the error I was getting was different from what you're seeing.

from cli.

 avatar commented on June 12, 2024

from cli.

 avatar commented on June 12, 2024

from cli.

 avatar commented on June 12, 2024

from cli.

 avatar commented on June 12, 2024

from cli.

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.