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 errors in Browser #86

Open
Code-Kat opened this issue Nov 10, 2021 · 3 comments
Open

Not found errors in Browser #86

Code-Kat opened this issue Nov 10, 2021 · 3 comments

Comments

@Code-Kat
Copy link

GET http://localhost:3000/url/to/dictFiles/base.dat.gz 404 (Not Found)
GET http://localhost:3000/url/to/dictFiles/unk_pos.dat.gz404 (Not Found)

I am getting about 30 errors such as the ones above in my console when I try to use kuroshiro.

I have installed kuroshiro, kuroshiro-analyzer-kuromoji, and kuromiji through npm.
Framework: Next.js

import Kuroshiro from "kuroshiro";
import KuromojiAnalyzer from "kuroshiro-analyzer-kuromoji";

export const kanjiToRomaji = async (kanji: string) => {
  const kuroshiro = new Kuroshiro();
  await kuroshiro.init(new KuromojiAnalyzer());
  const romaji = await kuroshiro.convert(kanji, { to: "romaji" });
  return romaji;
};

@jgaynor17
Copy link

did you solve this?

@owen-will-m
Copy link

also looking for a solution to this

@cyfung1031
Copy link

cyfung1031 commented May 26, 2023

You can clone the dicts file from kuromoji's npm

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

4 participants