mirror of
https://github.com/hexastack/hexabot
synced 2024-12-29 15:31:04 +00:00
Update nlu/models/slot_filler.py
This commit is contained in:
parent
d7f69ff2be
commit
5a522b14cc
@ -202,10 +202,6 @@ class SlotFiller(tfbp.Model):
|
|||||||
token = tokens[idx]
|
token = tokens[idx]
|
||||||
slot_id = slot_ids[idx]
|
slot_id = slot_ids[idx]
|
||||||
|
|
||||||
# Skip special tokens
|
|
||||||
if token in special_tokens:
|
|
||||||
idx += 1
|
|
||||||
continue
|
|
||||||
|
|
||||||
# Get slot name
|
# Get slot name
|
||||||
slot_name = self.extra_params["slot_names"][slot_id]
|
slot_name = self.extra_params["slot_names"][slot_id]
|
||||||
|
Loading…
Reference in New Issue
Block a user