def run(self):
logger.info(u'<STR_LIT>')<EOL>while not self._stop:<EOL><INDENT>xml = self._readxml()<EOL>if xml is None:<EOL><INDENT>break<EOL><DEDENT>if not self.modelize:<EOL><INDENT>logger.info(u'<STR_LIT>' % xml)<EOL>self.results.put(xml)<EOL>continue<EOL><DEDENT>if xml.tag == '<STR_LIT>':<EOL><INDENT>sentence = Sentence.from_shypo(xml.find('<STR_LIT>'), self.encoding)<EOL>logger.info(u'<STR_LIT>' % sentence)<EOL>self.results.put(sentence)<EOL><DEDENT>else:<EOL><INDENT>logger.info(u'<STR_LIT>' % xml)<EOL>self.results.put(xml)<EOL><DEDENT><DEDENT>logger.info(u'<STR_LIT>')<EOL>
Start listening to the server