JohnSnowLabs / nlu

1 line for thousands of State of The Art NLP models in hundreds of languages The fastest and most accurate way to solve text problems.
Apache License 2.0
841 stars 131 forks source link

Feature/span bert coref model integration #128

Closed C-K-Loan closed 2 years ago

C-K-Loan commented 2 years ago

Makes Spark NLPs Coref Bert avaiable


data = 'John told Mary he would like to borrow a book'
p = nlu.load('en.coreference.spanbert')
res = p.predict(data)