Update string_category.py

removed import os and general from nltk import compat to make it run with less resources