You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, there. Thank you for the great library.
When I add this pacakge to my project, I found that the dotnet CLI did not add dic directory.
I guess I missed some steps, however I could not get them.
Please show me how I should treat this issue.
Steps
$ dotnet new MeCabTest --language=F#
$ dotnet add package MeCab.DotNet
$ vi Program.fs
$ cat Program.fs
open System
open MeCab
[<EntryPoint>]
let main argv =
let input = "行く川のながれは絶えずして、しかももとの水にあらず。"let tagger = MeCabTagger.Create (MeCabParam())
input
|> tagger.ParseToNodes
|> Seq.filter (fun node -> node.CharType > 0u)
|> Seq.map (fun node -> node.Feature.Split ',')
|> Seq.iter (fun features ->printf"%s" features.[7])
0
$ dotnet run
Unhandled exception. System.IO.DirectoryNotFoundException: Could not find a part of the path '/home/********/Documents/MeCabTest/dic/char.bin'.
at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter) at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode) at System.IO.FileStream.OpenHandle(FileMode mode, FileShare share, FileOptions options) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access) at MeCab.Core.CharProperty.Open(String dicDir) at MeCab.Core.Tokenizer.Open(MeCabParam param) at MeCab.Core.Viterbi.Open(MeCabParam param) at MeCab.MeCabTagger.Open(MeCabParam param) at MeCab.MeCabTagger.Create(MeCabParam param) at Program.main(String[] argv) in /home/********/Documents/MeCabTest/Program.fs:line 7
The text was updated successfully, but these errors were encountered:
Hi, there. Thank you for the great library.
When I add this pacakge to my project, I found that the dotnet CLI did not add
dic
directory.I guess I missed some steps, however I could not get them.
Please show me how I should treat this issue.
Steps
The text was updated successfully, but these errors were encountered: