Use mecab with Python3

The method of using setup.py described on the official website did not work. When I tried pip search with no good source, the package was found, and when I tried using it, it worked for the time being, so share it.

$ pip install mecab-python3

Check with interpreter

$ python3
>>> import MeCab
>>> mecab = MeCab.Tagger("-Ochasen")
>>> print(mecab.parse("It's nice weather today, is not it."))
Today Kyo Today noun-Adverbs possible
Ha ha is a particle-Particle
Good good good adjective-Independent adjectives / good basic forms
Weather Tenki Weather Noun-General
It's death. Auxiliary verb special / death basic form
Nene Nene Particles-Final particle
.. .. .. symbol-Kuten
EOS

did it.

Recommended Posts

Use mecab with Python3
[Python] Use JSON with Python
Use DynamoDB with Python
Use Python 3.8 with Anaconda
Use python with docker
Use Python and MeCab with Azure Functions
Use Trello API with python
[Python] Morphological analysis with MeCab
Use Twitter API with Python
Use TUN / TAP with Python
Use subsonic API with python3
Python: How to use async with
Use PointGrey camera with Python (PyCapture2)
Use vl53l0x with Raspberry Pi (python)
[Python] Use Basic/Digest authentication with Flask
Use NAIF SPICE TOOLKIT with Python
Use rospy with virtualenv in Python3
Use Python in pyenv with NeoVim
How to use FTP with Python
Use Windows 10 speech synthesis with Python
Use OpenCV with Python 3 in Window
Use PostgreSQL with Lambda (Python + psycopg2)
When using MeCab with virtualenv python
FizzBuzz with Python3
Scraping with Python
Scraping with Python
Python with Go
Twilio with Python
Integrate with Python
Play with 2016-Python
AES256 with python
Tested with Python
python starts with ()
with syntax (Python)
MeCab from Python
Bingo with python
Zundokokiyoshi with python
Excel with Python
Microcomputer with Python
Cast with python
Use MeCab and neologd with Google Colab
Use DeepL with python (for dissertation translation)
Using Python and MeCab with Azure Databricks
Use Amazon Simple Notification Service with Python
[Python] Use string data with scikit-learn SVM
[Introduction to Python] Let's use foreach with Python
Use PIL and Pillow with Cygwin Python
Use cryptography library cryptography with Docker Python image
Tweet analysis with Python, Mecab and CaboCha
Use Application Insights with Python 3 (including bottles)
Use C ++ functions from python with pybind11
Use selenium phantomjs webdriver with python unittest
Until you can use opencv with python
Serial communication with Python
Zip, unzip with python
Django 1.11 started with Python3.6
Python with eclipse + PyDev.
Use thingsspeak from python
Socket communication with Python
Data analysis with python 2
Scraping with Python (preparation)