SHARE
TWEET

Untitled

a guest Jul 19th, 2019 89 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. sen = "A fawn was racing in the forest!He was ahead of the rabbit?He      
  2. was ahead of the elephant."
  3. nlp = spacy.load('en')
  4. nlp.add_pipe(nlp.create_pipe('sentencizer'), first=True)
  5. doc = nlp(sen)
  6. sentences = [sent.string.strip() for sent in doc.sents]
  7.      
  8. "A fawn was racing in the forest!"
  9.  
  10. "He was ahead of the rabbit?"
  11.  
  12. "He was ahead of the elephant."
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top