Browse Source

bug修复

master
wangsheng 3 years ago
parent
commit
7d7108719c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      自然语言处理/短语挖掘与新词发现/苏剑林/main_sujianlin.py

+ 1
- 1
自然语言处理/短语挖掘与新词发现/苏剑林/main_sujianlin.py View File

@@ -33,7 +33,7 @@ def isChinese(word):
notStartChar = ['》', '」', '】', ')', ']', '·', '・', '•']
notEndChar = ['《', '「', '【', '(', '[', '·', '・', '•']
def notStartEnd(word):
if word[0] not in notStartChar and word[len(work) - 1] not in notEndChar:
if word[0] not in notStartChar and word[-1] not in notEndChar:
return True
return False



Loading…
Cancel
Save