96557094246dcee118818652e057e1e1a2688773,snips_nlu/dataset/intent.py,,capture_slot,#Any#,305
Before Change
next_colon_pos = state.find(":")
next_square_bracket_pos = state.find("]")
if next_square_bracket_pos < 0:
raise IntentFormatError("Missing ending "]" in annotated utterance")
if next_colon_pos < 0 or next_square_bracket_pos < next_colon_pos:
slot_name = state[:next_square_bracket_pos]
state.move(next_square_bracket_pos)
state.add_slot(slot_name)
After Change
next_colon_pos = state.find(":")
next_square_bracket_pos = state.find("]")
if next_square_bracket_pos < 0:
raise IntentFormatError(
"Missing ending "]" in annotated utterance \"%s\"" % state.input)
if next_colon_pos < 0 or next_square_bracket_pos < next_colon_pos:
slot_name = state[:next_square_bracket_pos]
state.move(next_square_bracket_pos)
state.add_slot(slot_name)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: snipsco/snips-nlu
Commit Name: 96557094246dcee118818652e057e1e1a2688773
Time: 2019-05-02
Author: adrien.ball@snips.ai
File Name: snips_nlu/dataset/intent.py
Class Name:
Method Name: capture_slot
Project Name: snipsco/snips-nlu
Commit Name: 96557094246dcee118818652e057e1e1a2688773
Time: 2019-05-02
Author: adrien.ball@snips.ai
File Name: snips_nlu/dataset/intent.py
Class Name:
Method Name: capture_tagged
Project Name: snipsco/snips-nlu
Commit Name: f8c9ee995fdcc4de64255eee79e94d779e26918b
Time: 2018-11-22
Author: adrien.ball@snips.ai
File Name: snips_nlu/dataset/intent.py
Class Name:
Method Name: capture_tagged
Project Name: snipsco/snips-nlu
Commit Name: f8c9ee995fdcc4de64255eee79e94d779e26918b
Time: 2018-11-22
Author: adrien.ball@snips.ai
File Name: snips_nlu/dataset/intent.py
Class Name:
Method Name: capture_slot