# -*- coding: utf-8 -*- import nltk import time import clt_gen from mod_python import apache from mod_python import util def function(text): start_time = time.clock() tokens = nltk.sent_tokenize(text) result = clt_gen.json_envelope(clt_gen.json_list(tokens),start_time) return (result)