Finding sentences using the Java core API

There are several approaches to performing SBD using the Java core JDK. While they will not always yield good results as do other more advanced SBD techniques, they may prove quite useful in some situations while not incurring the expense of specialized NLP models.

In this recipe, we will examine two approaches:

  • The first approach will use the split method of the String class
  • The second approach uses a simple regular expression
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.117.99.82