Implementation of Some Text Mining Code