GithubHelp home page GithubHelp logo

mecab's Introduction

MeCab

Build Status

This fork exists solely to make mecab easier to install. I've also renamed the gem from mecab-ruby-gem to just mecab. I don't take any credit for this gem.

Original is at https://github.com/hotchpotch/mecab-ruby-gem

Example Usage

require 'mecab'

sentence = "太郎はこの本を二郎を見た女性に渡した。"
tagger = MeCab::Tagger.new
puts tagger.parse sentence

太郎	名詞,固有名詞,人名,,*,*,太郎,タロウ,タロー
	助詞,係助詞,*,*,*,*,,,
この	連体詞,*,*,*,*,*,この,コノ,コノ
	名詞,一般,*,*,*,*,,ホン,ホン
	助詞,格助詞,一般,*,*,*,,,
	名詞,,*,*,*,*,,,
	名詞,一般,*,*,*,*,,ロウ,ロー
	助詞,格助詞,一般,*,*,*,,,
	動詞,自立,*,*,一段,連用形,見る,,
	助動詞,*,*,*,特殊・タ,基本形,,,
女性	名詞,一般,*,*,*,*,女性,ジョセイ,ジョセイ
	助詞,格助詞,一般,*,*,*,,,
渡し	動詞,自立,*,*,五段・サ行,連用形,渡す,ワタシ,ワタシ
	助動詞,*,*,*,特殊・タ,基本形,,,
	記号,句点,*,*,*,*,,,
EOS

Installation

gem install mecab

Installing prerequisites

  • Mecab (0.996)
  • mecab-ipadic

Homebrew

$ brew update
$ brew install mecab mecab-ipadic

Unix

curl https://mecab.googlecode.com/files/mecab-0.996.tar.gz
tar zxf mecab-0.996.tar.gz
cd mecab-0.996
./configure --with-charset=utf8 --enable-utf8-only
make
sudo make install

mecab's People

Contributors

markburns avatar hotchpotch avatar berjistech avatar keichan34 avatar

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.