Skip to content

Commit

Permalink
Fix empty arguments for validate_phrase_inputs() call
Browse files Browse the repository at this point in the history
  • Loading branch information
Daun Jung committed Jul 25, 2020
1 parent 6874059 commit d9cc941
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion konlpy/tag/_hannanum.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def pos(self, phrase, ntags=9, flatten=True, join=False):
:param flatten: If False, preserves eojeols.
:param join: If True, returns joined sets of morph and tag.
"""
validate_phrase_inputs()
validate_phrase_inputs(phrase)

if ntags == 9:
result = self.jhi.simplePos09(phrase)
Expand Down
2 changes: 1 addition & 1 deletion konlpy/tag/_kkma.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def pos(self, phrase, flatten=True, join=False):
:param flatten: If False, preserves eojeols.
:param join: If True, returns joined sets of morph and tag.
"""
validate_phrase_inputs()
validate_phrase_inputs(phrase)

sentences = self.jki.morphAnalyzer(phrase)
morphemes = []
Expand Down
2 changes: 1 addition & 1 deletion konlpy/tag/_komoran.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def pos(self, phrase, flatten=True, join=False):
:param flatten: If False, preserves eojeols.
:param join: If True, returns joined sets of morph and tag.
"""
validate_phrase_inputs()
validate_phrase_inputs(phrase)

sentences = phrase.split('\n')
morphemes = []
Expand Down
2 changes: 1 addition & 1 deletion konlpy/tag/_mecab.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def pos(self, phrase, flatten=True, join=False):
:param flatten: If False, preserves eojeols.
:param join: If True, returns joined sets of morph and tag.
"""
validate_phrase_inputs()
validate_phrase_inputs(phrase)

if sys.version_info[0] < 3:
phrase = phrase.encode('utf-8')
Expand Down
2 changes: 1 addition & 1 deletion konlpy/tag/_okt.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def pos(self, phrase, norm=False, stem=False, join=False):
:param stem: If True, stem tokens.
:param join: If True, returns joined sets of morph and tag.
"""
validate_phrase_inputs()
validate_phrase_inputs(phrase)

tokens = self.jki.tokenize(
phrase,
Expand Down

0 comments on commit d9cc941

Please sign in to comment.