Skip to content

Commit

Permalink
small issue fix
Browse files Browse the repository at this point in the history
Imustgo -> imustgo
  • Loading branch information
mingfengwan committed Aug 5, 2020
1 parent 22f8e81 commit f56de1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ekphrasis/classes/segmenter.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def find_segment(self, text, prev='<S>'):
# if you don't have enough RAM lower the maxsize
@lru_cache(maxsize=65536)
def segment(self, word):
if word.isupper():
if word.isupper() or (word[0].isupper() and word[1:].islower()):
word = word.lower()
if word.islower():
return " ".join(self.find_segment(word)[1])
Expand Down

0 comments on commit f56de1f

Please sign in to comment.