Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

question: status of wikipedia plugin? #1116

Closed
sandro-pasquali opened this issue Jun 12, 2024 · 3 comments
Closed

question: status of wikipedia plugin? #1116

sandro-pasquali opened this issue Jun 12, 2024 · 3 comments

Comments

@sandro-pasquali
Copy link

I was looking at the wikipedia plugin: https://observablehq.com/@spencermountain/compromise-wikipedia

I can't seem to get it working, as it errors with Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/.../one.js' imported from '/.../node_modules/compromise-wikipedia/src/plugin.js'

I noticed this:

import nlp from '../../../src/one.js' //TODO: fix me

It may be there is a different solution or other plugin I'm missing, but would love to parse out topics from text based on wikipedia topics.

Been enjoying wtf-wikipedia and thought I'd come at it from the opposite direction :)

Thanks!

@spencermountain
Copy link
Owner

whoa! ya that looks like a bug. Would love some help on this plugin, it was a bit of an experiment pushing the compressed wordlist into compromise and the browser.

will add a fix for this to the next upcoming release.
thanks!

@sandro-pasquali
Copy link
Author

Sure! I also noticed efrt (you have a skill in naming things) and that's interesting too. I'm not sure on your build process/dependency strategy but with this bug fix (where is the one.js?) I think it would be clearer to me how one,two,three, plugins, etc, are supposed to cooperate.

Thanks again.

@spencermountain
Copy link
Owner

released a (long-overdue 😰 ) fix for this as compromise-wikipedia@0.1.1
cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants