Skip to content

Commit

Permalink
cleaner imports
Browse files Browse the repository at this point in the history
  • Loading branch information
vansky committed Mar 25, 2021
1 parent 088f046 commit f44acf3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions data.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
import torch
import re

#from nltk import sent_tokenize

re_sentend = re.compile(r'(?<!\b[A-Z]\.)(?<!\b[Mm]rs\.)(?<!\b[MmDdSsJj]r\.)(?<=[\.\?\!])[ \n\t](?!["\'])|(?<!\b[A-Z]\.)(?<!\b[Mm]rs\.)(?<!\b[MmDdSsJj]r\.)(?<=[\.\?\!] ["\'])[ \n\t]+')

def sent_tokenize(instr):
Expand Down

0 comments on commit f44acf3

Please sign in to comment.