code: def test_classifier_chinese(self):
      fpath = "./resources/text_data/chinese_hotel_reviews.csv"
      (
          x_train,
          y_train,
          label_names,
      ) = snlp.Classifier.load_texts_from_csv(
          fpath, text_column="content", label_column="pos", sep="|"
      )
      print("label names: %s" % (label_names))
      clf = snlp.Classifier()
      clf.fit(x_train, y_train, ctype="nbsvm")
      self.assertGreaterEqual(clf.evaluate(x_train, y_train), 0.98)
      neg_text = "我讨厌和鄙视这家酒店。"
      pos_text = "我喜欢这家酒店。"
      self.assertEqual(clf.predict(pos_text), 1)
      self.assertEqual(clf.predict(neg_text), 0)
  
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 2 for calling the TestShallowNLP obj's underlying member method code with example usage: obj.test_classifier_chinese() without return types