asimokby commited on
Commit
f19f36a
1 Parent(s): 7cf946c

using a lighter zero-shot-classification model

Browse files
Files changed (1) hide show
  1. Models.py +2 -2
Models.py CHANGED
@@ -23,8 +23,8 @@ class Models:
23
  self.ner_dates = pipeline('ner', model=model, tokenizer=tokenizer, aggregation_strategy="simple")
24
 
25
  #Zero Shot Classification
26
- self.zero_shot_classifier = pipeline("zero-shot-classification", model='facebook/bart-large-mnli')
27
- # self.zero_shot_classifier = pipeline("zero-shot-classification", model='valhalla/distilbart-mnli-12-6')
28
 
29
  # Ner
30
  tokenizer = AutoTokenizer.from_pretrained("dslim/bert-base-NER")
 
23
  self.ner_dates = pipeline('ner', model=model, tokenizer=tokenizer, aggregation_strategy="simple")
24
 
25
  #Zero Shot Classification
26
+ # self.zero_shot_classifier = pipeline("zero-shot-classification", model='facebook/bart-large-mnli')
27
+ self.zero_shot_classifier = pipeline("zero-shot-classification", model='valhalla/distilbart-mnli-12-6')
28
 
29
  # Ner
30
  tokenizer = AutoTokenizer.from_pretrained("dslim/bert-base-NER")