Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

module to split text into sentences

Status
Not open for further replies.

Graziella

Programmer
Jul 8, 2004
38
AT
Hello,

does anyone know of a good and easy to use module to split English text into sentences ?

Thank you,

Grazia
 
Why not just change the default record seperator to "." as in:

Code:
$/ = ".";

my @sentence_array = (<MYFILE>);

That should put each sentence in an array element.

HTH

Nick
 
One cannot simply set the default record seperator to "."
because there are plenty of usages of "." that do not indicate the splitting of a sentence.

Grazia
 
>> One cannot simply set the default record seperator to "." because there are plenty of usages of "." that do not indicate the splitting of a sentence.

Agreed, just as there are other symbols which denote the end of sentences too '!', '?' etc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top