Skip to content

Commit

Permalink
missing crf output update (thanks Luca)
Browse files Browse the repository at this point in the history
  • Loading branch information
kermitt2 committed Jul 12, 2023
1 parent 30e87a6 commit bc19e28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion delft/sequenceLabelling/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1026,7 +1026,7 @@ def __init__(self, config, ntags=None, load_pretrained_weights=True, local_path:
self.crf = ChainCRF()
pred = self.crf(x)

self.model = Model(inputs=[input_ids_in, features_input, token_type_ids, attention_mask], outputs=[x])
self.model = Model(inputs=[input_ids_in, features_input, token_type_ids, attention_mask], outputs=[pred])
self.config = config

def get_generator(self):
Expand Down

0 comments on commit bc19e28

Please sign in to comment.