<jupyter_start><jupyter_text>KoNLP Engine별 성능 비교  Mecap Engine 설치 * Source : Mecab 설치 - https://yuddomack.tistory.com/entry/처음부터-시작하는-EC2-konlpy-mecab-설치하기ubuntu<jupyter_code># !apt-get install -y openjdk-8-jdk python-dev python3-dev
!bash <(curl -s https://raw.githubusercontent.com/konlpy/konlpy/master/scripts/mecab.sh)

!pip uninstall konlpy
!pip install konlpy
from konlpy.tag import *
engines = [Kkma, Hannanum,Mecab]
s = u"갤럭시는 화면이 큰데, 좋은데?" 
for e in engines:
    print(e)
    print(e().pos(s))<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.13721804511278196, 'fraction_numerical': 0.005639097744360902, 'mean_word_length': 4.793478260869565, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '216896', 'license': 'MIT', 'n_tokens_mistral': 263, 'n_tokens_neox': 287, 'n_words': 44, 'path': '2.NLP_and_Preprocessing/KoNLP_Engine_mecab.ipynb', 'repo_name': 'Finfra/AI_NLP', 'size': '532'}