无法运行形态分析

时间:2016-10-24 16:13:21

标签: python python-3.x

我的程序正在对阿拉伯语单词应用名为polyglot的形态分析。 但是当我运行程序时出现这个错误:

 ImportError: dlopen(//anaconda/lib/python3.5/site-packages/_icu.cpython-35m-darwin.so, 2): Library not loaded: libicui18n.54.dylib
  Referenced from: //anaconda/lib/python3.5/site-packages/_icu.cpython-35m-darwin.so
  Reason: image not found

这是我的代码的一部分:

  from polyglot.downloader import downloader
  from polyglot.text import Text, Word


   #function for PreProcessing:
   def PreProcess_text(Input):
        tokens=regexp_tokenize(Input, r'[،؟!.؛\s+]\s*', gaps=True)
        Free= Remove_StopWords(normlization(tokens))
        correct= Autocorrect(Free)
        morph= Morphing(correct)
        #tag= tagging(correct)
        return morph 


   H = input('H:')
   Cleand= PreProcess_text(H)
   print(Cleand) 

我在Mac Serria操作系统上使用Python3。

谢谢,

0 个答案:

没有答案