Skip to content

Commit

Permalink
복합명사 추출 시 (score, frequency) > (frequency, score) 로 오류 수정 (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
lovit committed Mar 1, 2021
1 parent 23385f7 commit 0680224
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion soynlp/noun/lr.py
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ def extract_compounds_func(lrgraph, noun_scores,
lrgraph.remove_eojeol(word)

compounds = {
noun: (score, compounds_counts.get(noun, 0))
noun: (compounds_counts.get(noun, 0), score)
for noun, score in compounds_scores.items()}

if verbose:
Expand Down

0 comments on commit 0680224

Please sign in to comment.