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

Not found error #110

Open
saito-kosuke opened this issue Aug 17, 2023 · 0 comments
Open

Not found error #110

saito-kosuke opened this issue Aug 17, 2023 · 0 comments

Comments

@saito-kosuke
Copy link

saito-kosuke commented Aug 17, 2023

When executing the following getTokenizer, a Not found error has occurred to me.
Could someone tell me how to deal with that?

Here's a minimum reproduction code.

export const getTokenizer = (): Promise<Tokenizer<IpadicFeatures>> => {
  const tokenizerBuilder: TokenizerBuilder<IpadicFeatures> = builder({
    dicPath: "node_modules/kuromoji/dict",
  });

  return new Promise<Tokenizer<IpadicFeatures>>((resolve, reject) => {
    tokenizerBuilder.build((err: Error, tokenizer: Tokenizer<IpadicFeatures>) => {
      if (err) {
        reject(err);
      } else {
        resolve(tokenizer);
      }
    });
  });
};

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

No branches or pull requests

1 participant