text: # -*- coding: utf-8 -*-
  
  import sys
  sys.path.append('../..')
  
  import clfzoo
  import clfzoo.transformer as clf
  from clfzoo.config import ConfigTransformer
  
  class Config(ConfigTransformer):
      def __init__(self):
          super(Config, self).__init__()
  
      batch_size = 8
      max_sent_num = 1
      max_sent_len = 60
      lr_rate=1e-4
      num_units=256
      num_heads=4
      num_blocks=2
      train_file = '../data/english/TREC.train.txt'
      dev_file = '../data/english/TREC.test.txt'
  
  clf.model(Config())
  
  datas = ['几点了', '天气怎么样啊？']
  labels = ['datetime', 'weather']
  preds, metrics = clf.test(datas, labels)
  print(preds)
  print(metrics)
  