Skip to content

Commit

Permalink
Merge branch 'main' of github.com:theeluwin/textrankr into main
Browse files Browse the repository at this point in the history
  • Loading branch information
theeluwin committed Feb 11, 2021
2 parents ac50936 + 3c5fa36 commit 94d6cdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion textrankr/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def parse_text_into_sentences(text: str, tokenizer: Callable[[str], List[str]])
sentences: List[Sentence] = []

# parse text
candidates: List[str] = split(r'(?:(?<=[^0-9])\.|\n)', text)
candidates: List[str] = split(r'(?:(?<=[^0-9])\.|\n|!|\?)', text)
for candidate in candidates:

# cleanse the candidate
Expand Down

0 comments on commit 94d6cdb

Please sign in to comment.