Weekly Update 9: Released AI Summarization Plugin and Learning about Tech Specs

Progress

Plan

  • Writing a tech spec about the generic Web Worker and discussing it with the community
  • Improve the plugin or fix the bugs

Problem

Running word2vec:

The first problem was that word2vec uses node child processes to call some C scripts. It seems that it cannot find the file because the library is bundled

I came up with the solution of either copying the whole word2vec to the dist or storing it in the dataDir. However, the plugin cannot find the module when I use require() or import statements.

It worked before because I used absolute paths and forgot it was that way.

Possible Solution:

1. First
I think it is better to focus on implementing the generic web workers since it would also solve the issue.
2. Second
We could modify the word2vec script and copy the C scripts to the dist folder. However, I believe the library is no longer maintained: Google Code Archive - Long-term storage for Google Code Project Hosting.

I would be happy to hear if there's a way to make the node child processes find the scripts that the word2vec library uses!

1 Like