Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 113351
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T02:41:19+00:00 2026-05-11T02:41:19+00:00

Does anyone know of a Java library that handles finding sentence boundaries? I’m thinking

  • 0

Does anyone know of a Java library that handles finding sentence boundaries? I’m thinking that it would be a smart StringTokenizer implementation that knows about all of the sentence terminators that languages can use.

Here’s my experience with BreakIterator:

Using the example here: I have the following Japanese:

今日はパソコンを買った。高性能のマックは早い!とても快適です。 

In ascii, it looks like this:

\ufeff\u4eca\u65e5\u306f\u30d1\u30bd\u30b3\u30f3\u3092\u8cb7\u3063\u305f\u3002\u9ad8\u6027\u80fd\u306e\u30de\u30c3\u30af\u306f\u65e9\u3044\uff01\u3068\u3066\u3082\u5feb\u9069\u3067\u3059\u3002 

Here’s the part of that sample that I changed: static void sentenceExamples() {

  Locale currentLocale = new Locale ('ja','JP');   BreakIterator sentenceIterator =       BreakIterator.getSentenceInstance(currentLocale);   String someText = '今日はパソコンを買った。高性能のマックは早い!とても快適です。'; 

When I look at the Boundary indices, I see this:

0|13|24|32 

But those indices don’t correspond to any sentence terminators.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T02:41:20+00:00Added an answer on May 11, 2026 at 2:41 am

    You wrote:

    I’m thinking that it would be a smart StringTokenizer implementation that knows about all of the sentence terminators that languages can use.

    A basic problem here is that sentence terminators depend on the context, consider:

    How did Dr. Jones compute 5! without recursion?

    This should be recognized as a single sentence, but if you just split on possible sentence terminators you will get three sentences.

    So this is a more complex problem than one might think in the beginning. It can be approached using machine learning techniques. You could for instance look into the OpenNLP project, in particular the SentenceDetectorME class.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 84k
  • Answers 84k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You can build a Web Site project using the AspNetCompiler… May 11, 2026 at 5:05 pm
  • Editorial Team
    Editorial Team added an answer This will only really work if the pivoted columns form… May 11, 2026 at 5:05 pm
  • Editorial Team
    Editorial Team added an answer If you declare a static variable in the implementation file… May 11, 2026 at 5:05 pm

Related Questions

Does anyone know of a Java library that handles finding sentence boundaries? I'm thinking
This question asking for a phone number format API in Java got me wondering
Does anyone know of a class in Java that has a list of elements,
Does anyone know if it possible to define the equivalent of a java custom
I'm trying to implement a system that works with faxes. We have a gatewary,

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.