playground.py 311 B

1234567891011121314
  1. import spacy
  2. from spacy import displacy
  3. nlp = spacy.load("en_core_web_trf")
  4. def test_something(text):
  5. doc = nlp(text)
  6. displacy.serve(doc, style="dep", port=5001)
  7. test_something('allow chat communication for authenticated users')
  8. #test_something('Stick element after scroll has passed the element')