Beispiel #1
0
        def getKey(content):

            tokens = NLP.getMorphology(content)

            if tokens is None:
                return content

            for token in tokens:

                if token is None:
                    break

                if u'名词' == token['wtype']:
                    return token['word']

            return content