Help for this page

Select Code to Download


  1. or download this
    $data = "How do you take paragraph or large amount of text and break i
    +t into sentences (perferably using Ruby) taking into account cases su
    +ch as Mr. and Dr. and U.S.A? (Assuming you just put the sentences int
    +o an array of arrays)
    
    UPDATE: One possible solution I thought of involves using a parts-of-s
    +peech tagger (POST) and a classifier to determine the end of a senten
    +ce:
    
    Getting data from Mr. Jones felt the warm sun on his face as he steppe
    +d out onto the balcony of his summer home in Italy. He was happy to b
    +e alive.";