Skip to content

Commit 515871e

Browse files
authored
Update kcm.py
1 parent 51d7232 commit 515871e

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

kcm/ex_kcm/kcm.py

+10-3
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,15 @@ def sim(input):
88
----------
99
input : string
1010
only keywords on kcm dict will return result, otherwise return empty list
11-
Returns
12-
-------
13-
value : list of dict, result keywords as keys, and its frequency will be value.
11+
12+
output : two-dimensional list
13+
The output is a two-dimensional list.
14+
The output contains 10 elements.
15+
Each element is a list with two items:
16+
The first item is related keyword and the second item is frequency.
17+
18+
Example:
19+
[ [“高雄市”, 39], [“國民黨”, 39], [“候選人”, 24],……. ]
20+
1421
"""
1522
pass

0 commit comments

Comments
 (0)