emanuelaboros commited on
Commit
3dd948f
·
1 Parent(s): ce6d631

testin the trick

Browse files
Files changed (1) hide show
  1. modeling_stacked.py +1 -0
modeling_stacked.py CHANGED
@@ -42,6 +42,7 @@ class ExtendedMultitaskModelForTokenClassification(PreTrainedModel):
42
  def forward(self, input_ids, attention_mask=None, **kwargs):
43
  # Convert input_ids to strings using tokenizer
44
  print(f"Check if it arrives here: {input_ids}")
 
45
  # if input_ids is not None:
46
  # tokenizer = kwargs.get("tokenizer")
47
  # texts = tokenizer.batch_decode(input_ids, skip_special_tokens=True)
 
42
  def forward(self, input_ids, attention_mask=None, **kwargs):
43
  # Convert input_ids to strings using tokenizer
44
  print(f"Check if it arrives here: {input_ids}")
45
+ predictions, probabilities = self.model_floret.predict([input_ids], k=1)
46
  # if input_ids is not None:
47
  # tokenizer = kwargs.get("tokenizer")
48
  # texts = tokenizer.batch_decode(input_ids, skip_special_tokens=True)