Skip to content

Commit

Permalink
revert lang support
Browse files Browse the repository at this point in the history
  • Loading branch information
arianpasquali committed Apr 23, 2020
1 parent 76f85ac commit b992bf3
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions yake/yake.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ def __init__(self, lan="en", n=3, dedupLim=0.9, dedupFunc='seqm', windowsSize=1,

local_path = os.path.join("StopwordsList", "stopwords_%s.txt" % lan[:2].lower())

# if can't find language stopword list file
if not os.path.exists(local_path):
# load default empty list
local_path = os.path.join("StopwordsList", "stopwords_noLang.txt")

resource_path = os.path.join(dir_path,local_path)

try:
Expand Down

0 comments on commit b992bf3

Please sign in to comment.