code: def test_ner(self):
      ner = snlp.NER("en")
      text = """
          Xuetao Cao was head of the Chinese Academy of Medical Sciences and is
          the current president of Nankai University.
          """
      result = ner.predict(text)
      self.assertEqual(len(result), 3)
      self.assertEqual(result[0][1], "PER")
      self.assertEqual(result[1][1], "ORG")
      self.assertEqual(result[2][1], "ORG")
      self.assertEqual(
          len(
              snlp.sent_tokenize(
                  "Paul Newman is a good actor.  Tommy Wisseau is not."
              )
          ),
          2,
      )
  
      ner = snlp.NER("zh")
      text = """
          曹雪涛曾任中国医学科学院院长，现任南开大学校长。
          """
      result = ner.predict(text)
      self.assertEqual(len(result), 3)
      self.assertEqual(result[0][1], "PER")
      self.assertEqual(result[1][1], "ORG")
      self.assertEqual(result[2][1], "ORG")
      self.assertEqual(
          len(snlp.sent_tokenize("这是关于史密斯博士的第一句话。第二句话是关于琼斯先生的。")), 2
      )
  
      ner = snlp.NER("ru")
      text = """Владимир Владимирович Путин - российский политик, который является президентом России с 2012 года."""
      result = ner.predict(text)
      self.assertEqual(len(result), 2)
      self.assertEqual(result[0][1], "PER")
      self.assertEqual(result[1][1], "LOC")
  
file_path: ktrain/tests/test_zzz_shallownlp.py
imports: import os
  from unittest import TestCase, main, skip
  import numpy
  import testenv
  from ktrain.text import shallownlp
label_desc: Use image node_id 3 for calling the TestShallowNLP obj's underlying member method code with example usage: obj.test_ner() without return types