def mock_documents(language, category):
documents = ["<STR_LIT>",<EOL>"<STR_LIT>",<EOL>"<STR_LIT>",<EOL>"<STR_LIT>",<EOL>"<STR_LIT>",<EOL>"<STR_LIT>",<EOL>"<STR_LIT>",<EOL>"<STR_LIT>",<EOL>"<STR_LIT>"]<EOL>docs = [{'<STR_LIT:id>': '<STR_LIT:_>'.join((language, category, str(num))),<EOL>'<STR_LIT>': gensim.utils.simple_preprocess(document), '<STR_LIT>': range(num),<EOL>'<STR_LIT>': language, '<STR_LIT>': category}<EOL>for num, document in enumerate(documents)]<EOL>return docs<EOL>
Create a few SimServer documents, for testing.