Skip to content

Commit 8a3171b

Browse files
committed
update params for getting all sememes
1 parent e09da62 commit 8a3171b

4 files changed

Lines changed: 5 additions & 6 deletions

File tree

.gitignore

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@ __pycache__
55
/build/
66
/dist/
77
/MANIFEST.in
8-
/*.py
98
*.swp
109
*.egg-info
1110
.DS_Store
1211
/OpenHowNet/HowNet_dict_complete
13-
/output.md
14-
12+
/*.py
13+
/*.sh

OpenHowNet/Standards.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def __getitem__(self, item):
6464
:return:(List) candidates HowNet annotation, if the target word does not exist, return an empty list.
6565
"""
6666
res = list()
67-
if item == "I WANT ALL!" or item == "*":
67+
if item == "I WANT ALL!":
6868
for item in self.ids.values():
6969
res.extend(item)
7070
return res

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ You could specify the number of the expanded layers:
178178
You could get all flattened sememe trees for all words as well as specify the number of the expanded layers:
179179

180180
```python
181-
>>> hownet_dict.get_sememes_by_word("*",structured=False,merge=True)
181+
>>> hownet_dict.get_sememes_by_word("I WANT ALL!",structured=False,merge=True)
182182
# the result is too large, just try it yourself.
183183
```
184184

README_ZH.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ Display #1 sememe tree
174174
你可以在获取所有词的义原树时指定展开层数:
175175

176176
```python
177-
>>> hownet_dict.get_sememes_by_word("*",structured=False,merge=True)
177+
>>> hownet_dict.get_sememes_by_word("I WANT ALL!",structured=False,merge=True)
178178
# 结果太长请自己尝试
179179
```
180180

0 commit comments

Comments
 (0)