I use mecab for morphological analysis. I heard that there are several other types of mecab, but I use mecab because it was recommended by an acquaintance.
The following sites are helpful.
How to install (or rather, the original website)
Using mecab python
Part-of-Speech ID Definition
Preparation for evaluation of user similarity
From O'Reilly: Set-Valued Programming