emails and numbers

node v14.20.1
version: master
endpointsharetweet
const nlp=require('compromise') const numbers=require('compromise-numbers') nlp.extend(numbers) let doc = nlp('john@email.com is 5 years old') console.log({ numbers:doc.numbers().text(), email:doc.emails().text() })
Loading…

no comments

    sign in to comment