Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
henghuiz committed Mar 30, 2019
1 parent 74877a3 commit 8883a17
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ vitae, eleifend ac, enim.
3. Aliquam lorem ante, dapibus in, viverra quis, feugiat a, tellus."""

for s, t in sentence_segment(sample_text, exclusive_phrse=['vs.']):
for s, t in sentence_segment(sample_text, exclusive_phrase=['vs.']):
print(repr(sample_text[s:t].strip()))
```

Expand Down
2 changes: 1 addition & 1 deletion example.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def main():
3. Aliquam lorem ante, dapibus in, viverra quis, feugiat a, tellus."""

for s, t in sentence_segment(sample_text, exclusive_phrse=['vs.']):
for s, t in sentence_segment(sample_text, exclusive_phrase=['vs.']):
print(repr(sample_text[s:t].strip()))


Expand Down
8 changes: 4 additions & 4 deletions simple_sentence_segment/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,10 @@ def get_span(eos_list, text):
return spans


def sentence_segment(text, exclusive_phrse=None):
if exclusive_phrse is None:
exclusive_phrse = DEFAULT_EXCLUSIVE
eos_id_list = get_possible_eos(text, exclusive_phrse)
def sentence_segment(text, exclusive_phrase=None):
if exclusive_phrase is None:
exclusive_phrase = DEFAULT_EXCLUSIVE
eos_id_list = get_possible_eos(text, exclusive_phrase)

X = []

Expand Down

0 comments on commit 8883a17

Please sign in to comment.