Results 1 to 3 of 3
  1. #1
    warlock is offline Member
    Join Date
    Mar 2011
    Posts
    16
    Rep Power
    0

    Default Extracting sentences from a text file

    Hi!
    I need to write a code to extract sentences from a text file.Now ,if I use '.' as a delimiter and separate the sentences on basis of that I will get into problems with acronyms.Because U.S.A will give 3 sentences U,S and A!How can I tackle this problem?

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is online now Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,691
    Rep Power
    8

    Default Re: Extracting sentences from a text file

    End-of-sentence punctuation followed by a space followed by a capital letter?
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    16,590
    Rep Power
    23

    Default Re: Extracting sentences from a text file

    extract sentences from a text file.
    You need to define the character sequences that end a sentence. Does post #2 do that?

Similar Threads

  1. Extracting values from a text file
    By kryptonian03 in forum New To Java
    Replies: 4
    Last Post: 03-22-2011, 06:13 AM
  2. Extracting Text from Image
    By kish27 in forum Advanced Java
    Replies: 3
    Last Post: 03-08-2011, 03:42 AM
  3. Extracting and displaying data from a text file
    By fugazi in forum New To Java
    Replies: 4
    Last Post: 01-07-2011, 06:37 PM
  4. extracting text from jpeg
    By Nicholas Jordan in forum Advanced Java
    Replies: 0
    Last Post: 10-05-2008, 11:40 PM
  5. Replies: 1
    Last Post: 02-04-2008, 08:26 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •