How can I call the function below in TypeScript:
nlp.text("Hi Dr. Miller the price is 4.59 for the U.C.L.A. Ph.Ds.").sentences.length
// 1
To make this function call work, what would be the correct import statement needed from this types definition?
It's important to note that text()
is both a function and method name within this definition. The function takes parameters, while the methods do not. I'm specifically looking for the function here.
I'm unsure which symbol will provide me with access to the NLP function defined in the js file located here.