Code Monkey home page Code Monkey logo

Comments (7)

ookii-tsuki avatar ookii-tsuki commented on June 12, 2024 1

if that doesn't work you can just make a folder called IpaDic in your app directory and then copy the following files in it:
image

from kawazu.

Cutano avatar Cutano commented on June 12, 2024 1

I think this is caused by the Nuget implict reference policy. I referenced LibNMeCab package in Kawazu, but when it published as a Nuget package and used by someone else, the reference of LibNMeCab became implicit, and it can't copy the files automatically as usual.
However, if you install LibNMeCab manually, it will copy the dics normally.

I don't know how to fix this right now, but I'll try to solve it asap.

from kawazu.

hidemat avatar hidemat commented on June 12, 2024 1

As a temporary solution to keep playing around with the Kawazu Library. Where would I find these files to copy to my project directory? I tried installing the LibNMeCab and LibNMeCab.IpaDicBin nuget packages but the directory is still not showing up.

Edit: Found it:
https://github.com/komutan/NMeCab

Kawasu is pretty cool by the way :)

from kawazu.

VShawn avatar VShawn commented on June 12, 2024

if that doesn't work you can just make a folder called IpaDic in your app directory and then copy the following files in it:

That's what I did, this ticket is just for checking if there are any automatically approaches
anyway copy files manually isn't a good solution for CI/CD

from kawazu.

VShawn avatar VShawn commented on June 12, 2024

However, if you install LibNMeCab manually, it will copy the dics normally.

As I know, some nuget package can auto add it's reference nuget package to your project. Maybe your can try to auto install the LibNMeCab when we install Kawazu

e.g.

once you install ServiceStack.OrmLite.Sqlite, the package System.Data.SQLite.Core will be installed at the sametime.

i don't know how they did that.

from kawazu.

Cutano avatar Cutano commented on June 12, 2024

However, if you install LibNMeCab manually, it will copy the dics normally.

As I know, some nuget package can auto add it's reference nuget package to your project. Maybe your can try to auto install the LibNMeCab when we install Kawazu

e.g.

once you install ServiceStack.OrmLite.Sqlite, the package System.Data.SQLite.Core will be installed at the sametime.

i don't know how they did that.

It actually did auto add the reference and you can even use them in code. But the reference is implicit:
image
image

I don't know how to make the LibNMeCab.ipaDic be installed explicitly.
Or maybe I can copy those dic files manually in code, but I don't think it is a good way to solve this problem and may cause a waste of disk space due to the data redundancy.

from kawazu.

Cutano avatar Cutano commented on June 12, 2024

As a temporary solution to keep playing around with the Kawazu Library. Where would I find these files to copy to my project directory? I tried installing the LibNMeCab and LibNMeCab.IpaDicBin nuget packages but the directory is still not showing up.

Edit: Found it:
https://github.com/komutan/NMeCab

Kawasu is pretty cool by the way :)

If you install LibNMeCab.IpaDicBin manually, after compile and run, the files will be automatically copied to the output directory. Or you can find those files in Kawazu Nuget installation directory, and they are linked to your project by default, you can find them in the solution panel in Visual Studio :)

from kawazu.

Related Issues (14)

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.