Skip to content

Commit

Permalink
fixed hyphen
Browse files Browse the repository at this point in the history
  • Loading branch information
idf committed Dec 19, 2014
1 parent 54d8eb6 commit c9bbb26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rake.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def split_sentences(text):
Utility function to return a list of sentences.
@param text The text that must be split in to sentences.
"""
sentence_delimiters = re.compile(u'[.!?,;:\t\\-\\"\\(\\)\\\'\u2019\u2013]')
sentence_delimiters = re.compile(u'[.!?,;:\t\\\\"\\(\\)\\\'\u2019\u2013]|\s\-\s')
sentences = sentence_delimiters.split(text)
return sentences

Expand Down

0 comments on commit c9bbb26

Please sign in to comment.