Emanuela Boros commited on
Commit
bd79886
·
1 Parent(s): 14bb7d0

added other details

Browse files
Files changed (1) hide show
  1. generic_nel.py +2 -2
generic_nel.py CHANGED
@@ -107,8 +107,8 @@ class NelPipeline(Pipeline):
107
  # Generate predictions using the model
108
  outputs = self.model.generate(
109
  **self.tokenizer([text], return_tensors="pt").to(self.device),
110
- num_beams=5,
111
- num_return_sequences=5,
112
  max_new_tokens=30,
113
  )
114
 
 
107
  # Generate predictions using the model
108
  outputs = self.model.generate(
109
  **self.tokenizer([text], return_tensors="pt").to(self.device),
110
+ num_beams=1,
111
+ num_return_sequences=1,
112
  max_new_tokens=30,
113
  )
114