1234567891011121314 |
- import spacy
- from spacy import displacy
- nlp = spacy.load("en_core_web_trf")
- def test_something(text):
- doc = nlp(text)
- displacy.serve(doc, style="dep", port=5001)
- # test_something('Regex for redacted phone numbers with extra info for Baan-kaidee (TO BE REMOVED).')
- test_something('makes for mobile phones a diagonal number')
|