thepolymerguy commited on
Commit
d3df528
1 Parent(s): 5bdbc1f

Update tridentmodel.py

Browse files
Files changed (1) hide show
  1. tridentmodel.py +2 -2
tridentmodel.py CHANGED
@@ -13,7 +13,7 @@ Authors: Egheosa Ogbomo & Amran Mohammed (The Polymer Guys)
13
  Description: This script combines three ML-based models to identify whether an input text is related to green plastics or not.
14
  """
15
 
16
- pip install transformers
17
 
18
  ########## IMPORTING REQUIRED PYTHON PACKAGES ##########
19
  import pandas as pd
@@ -228,7 +228,7 @@ def broad_scope_class_predictor(class_embeddings, abstract_embedding, N=5, Sensi
228
 
229
 
230
  ########## LOADING PRE-COMPUTED EMBEDDINGS ##########
231
- class_embeddings = pd.read_csv('ClassEmbedd/MainClassEmbeddings.csv')
232
 
233
  abstract = """
234
  Described herein are strength characteristics and biodegradation of articles produced using one or more “green” sustainable polymers and one or more carbohydrate-based polymers. A compatibilizer can optionally be included in the article. In some cases, the article can include a film, a bag, a bottle, a cap or lid therefore, a sheet, a box or other container, a plate, a cup, utensils, or the like.
 
13
  Description: This script combines three ML-based models to identify whether an input text is related to green plastics or not.
14
  """
15
 
16
+ #pip install transformers
17
 
18
  ########## IMPORTING REQUIRED PYTHON PACKAGES ##########
19
  import pandas as pd
 
228
 
229
 
230
  ########## LOADING PRE-COMPUTED EMBEDDINGS ##########
231
+ class_embeddings = pd.read_csv('Embeddings/MainClassEmbeddings.csv')
232
 
233
  abstract = """
234
  Described herein are strength characteristics and biodegradation of articles produced using one or more “green” sustainable polymers and one or more carbohydrate-based polymers. A compatibilizer can optionally be included in the article. In some cases, the article can include a film, a bag, a bottle, a cap or lid therefore, a sheet, a box or other container, a plate, a cup, utensils, or the like.