Closed Snoopy1866 closed 1 month ago
AFAICT, this would leave a file descriptor opened (jieba.get_dict_file()
opens a file in read mode). So ideally, we should find a way to retrieve the default dict path without having to open the file. Would it be possible?
@picnixz yes, because the default dict is installed with jieba, so we can directly get its path using os.path.join(os.path.dirname(jieba.__file__), "dict.txt")
Subject: if user do not set the dict option, fallback to the default dict provided by jieba
Feature or Bugfix
Purpose
html_search_language
value iszh
Detail
jieba.get_dict_file().name
Relates