Coder Social home page Coder Social logo

mecab's Introduction

MeCab for Swift Package Manager

** Originally forked from FLCLjp/iPhone-libmecab (mirror here rnorth/iPhone-libmecab)

MeCab source code updated to current version from taku910/mecab (commit 3a07c4e on Mar 18, 2018)**

Getting Started

Go to the "Package Dependencies" tab in your Xcode project and click the + button to add a package.

Search for "github.com/landonepps/mecab", select "mecab", and click "Add Package".

Click "Add Package" again.

Go to your targets' "Build Phases" tab and make sure "mecab" shows under "Link Binary with Libraries".
If not, click the + button and add it.

You'll also need to add the dictionary files and a mecabrc file which tells MeCab where the dictionary files are located.
For an example, see: landonepps/MecabDemo which uses ipadic.
Make sure your dictionary files and mecabrc file show up under "Copy Bundle Resources".
Screen Shot 2021-10-10 at 3 45 03 PM

You can now import mecab from any file you want to use it from. MeCab is a C++ library and doesn't work cleanly with Swift. For an example of how to write a Swift wrapper, see landonepps/MecabDemo.

Reference

http://d.hatena.ne.jp/seiyan1978/comment?date=20111116&section=1321461642

mecab's People

Contributors

landonepps avatar

Stargazers

An Nguyen avatar Kris avatar 63rabbits goodman avatar Ryan Wachowski avatar

Watchers

James Cloos avatar  avatar

Forkers

dragonbattlesun

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.