dttvn0010 / mecab_dart

BSD 3-Clause "New" or "Revised" License
20 stars 15 forks source link

Feature variable dictionary path #13

Closed CaptainDario closed 1 year ago

CaptainDario commented 1 year ago

This PR adds an argument dicDir to Mecab.init(). With this it is possible to set a custom dictionary directory. This is useful on platforms that do not sandbox the documents directory (windows). Otherwise, on those platforms the documents directory will get clutter with directories the user does not understand (what is ipaddic from a users perspective).

Additionally, this adds:

However, it is based on the 3 other PRs I opened (Win, Lin Mac support) and therefore includes those changes.