運行 python test.py 報錯
Opened this issue · 1 comments
Deleted user commented
File "test.py", line 11, in <module>
tr4w = TextRank4Keyword(stop_words_file='./stopword.data') # 导入停止词
File "/home/fanlia/github/TextRank4ZH/textrank4zh/TextRank4Keyword.py", line 25, in __init__
self.seg = Segmentation(stop_words_file=stop_words_file, delimiters=delimiters)
File "/home/fanlia/github/TextRank4ZH/textrank4zh/Segmentation.py", line 104, in __init__
self.ss = SentenceSegmentation(delimiters)
File "/home/fanlia/github/TextRank4ZH/textrank4zh/Segmentation.py", line 81, in __init__
self.delimiters = unicode(delimiters)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position 3: ordinal not in range(128)
letiantian commented
非常感谢,已经修复。