You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
oof, these text options are a mess, and need to be fixed in our next breaking release.
Right now the fix on dev now supports this, will release it tmrw:
letdoc=nlp("Dr. John Smith-McDonald...? ")letopts={keepPunct: false,keepSpace: false,case: false,}console.log(doc.text(opts)+'|')// 'Dr. John Smith McDonald|'
In the example from https://observablehq.com/@spencermountain/compromise-text
the result is not as expected:
{
let doc = nlp(
Dr. John Smith-McDonald...
)let opts = {
punctuation: true,
abbreviations: true,
case: true,
}
return doc.text(opts)
}
result is "Dr.` John Smith-McDonald..." (unchanged from input text)
The text was updated successfully, but these errors were encountered: