Open Benjamin-Lee opened 4 years ago
Input: I was born in the U.S.A. My name is Benjamin D. Lee. Desired output: ["I was born in the U.S.A.", "My name is Benjamin D. Lee."] Actual output: I was born in the U.S.A. My name is Benjamin D. Lee.
I was born in the U.S.A. My name is Benjamin D. Lee.
["I was born in the U.S.A.", "My name is Benjamin D. Lee."]
Note that this works with U.S. but not U.S.A..
U.S.
U.S.A.
I wonder whether this lib does a better job, overall (probably not for Japanese though):
https://github.com/Tessmore/sbd
Input:
I was born in the U.S.A. My name is Benjamin D. Lee.
Desired output:["I was born in the U.S.A.", "My name is Benjamin D. Lee."]
Actual output:I was born in the U.S.A. My name is Benjamin D. Lee.
Note that this works with
U.S.
but notU.S.A.
.