tatk.nlu.jointBERT.crosswoz package¶
Submodules¶
tatk.nlu.jointBERT.crosswoz.analyse module¶
- 
tatk.nlu.jointBERT.crosswoz.analyse.calculateF1(predict_golden, goal_type=None, intent=None, domain=None, slot=None)¶ 
- 
tatk.nlu.jointBERT.crosswoz.analyse.get_goal_type(data, mode)¶ 
- 
tatk.nlu.jointBERT.crosswoz.analyse.read_zipped_json(filepath, filename)¶ 
tatk.nlu.jointBERT.crosswoz.nlu module¶
- 
class 
tatk.nlu.jointBERT.crosswoz.nlu.BERTNLU(mode, config_file, model_file)¶ Bases:
tatk.nlu.nlu.NLU- 
__init__(mode, config_file, model_file)¶ Initialize self. See help(type(self)) for accurate signature.
- 
predict(utterance, context=[])¶ Predict the dialog act of a natural language utterance.
- Args:
 - utterance (string):
 A natural language utterance.
- context (list of string):
 Previous utterances.
- Returns:
 - action (list of list):
 The dialog act of utterance.
- 
 
tatk.nlu.jointBERT.crosswoz.postprocess module¶
- 
tatk.nlu.jointBERT.crosswoz.postprocess.calculateF1(predict_golden)¶ 
- 
tatk.nlu.jointBERT.crosswoz.postprocess.intent2das(intent_seq)¶ 
- 
tatk.nlu.jointBERT.crosswoz.postprocess.is_slot_da(da)¶ 
- 
tatk.nlu.jointBERT.crosswoz.postprocess.recover_intent(dataloader, intent_logits, tag_logits, tag_mask_tensor, ori_word_seq, new2ori)¶ 
- 
tatk.nlu.jointBERT.crosswoz.postprocess.tag2das(word_seq, tag_seq)¶