emanuelaboros commited on
Commit
b1ec46e
·
1 Parent(s): e146364

testin the trick

Browse files
Files changed (1) hide show
  1. modeling_stacked.py +3 -1
modeling_stacked.py CHANGED
@@ -41,7 +41,9 @@ class ExtendedMultitaskModelForTokenClassification(PreTrainedModel):
41
 
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}, ---, {type(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")
 
41
 
42
  def forward(self, input_ids, attention_mask=None, **kwargs):
43
  # Convert input_ids to strings using tokenizer
44
+ print(
45
+ f"Check if it arrives here: {input_ids}, ---, {type(input_ids)} ----- {type(self.model_floret)}"
46
+ )
47
  predictions, probabilities = self.model_floret.predict([input_ids], k=1)
48
  # if input_ids is not None:
49
  # tokenizer = kwargs.get("tokenizer")