aliasgerovs commited on
Commit
a1474e2
1 Parent(s): fcb099e
Files changed (3) hide show
  1. nohup.out +2 -0
  2. plagiarism.py +5 -5
  3. predictors.py +2 -2
nohup.out CHANGED
@@ -1245,3 +1245,5 @@ To disable this warning, you can either:
1245
 
1246
 
1247
 
 
 
 
1245
 
1246
 
1247
 
1248
+ /usr/lib/python3/dist-packages/requests/__init__.py:87: RequestsDependencyWarning: urllib3 (2.2.1) or chardet (4.0.0) doesn't match a supported version!
1249
+ warnings.warn("urllib3 ({}) or chardet ({}) doesn't match a supported "
plagiarism.py CHANGED
@@ -95,11 +95,11 @@ def google_search(
95
  # stop after 3 pages
96
  if count >= 3:
97
  break
98
- # skip user selected domains
99
- if any(
100
- ("." + domain) in link["link"] for domain in domains_to_skip
101
- ):
102
- continue
103
  # clean up snippet of '...'
104
  snippet = link["snippet"]
105
  ind = snippet.find("...")
 
95
  # stop after 3 pages
96
  if count >= 3:
97
  break
98
+ # # skip user selected domains
99
+ # if any(
100
+ # ("." + domain) in link["link"] for domain in domains_to_skip
101
+ # ):
102
+ # continue
103
  # clean up snippet of '...'
104
  snippet = link["snippet"]
105
  ind = snippet.find("...")
predictors.py CHANGED
@@ -74,8 +74,8 @@ tokenizer = AutoTokenizer.from_pretrained(bias_checker_model_name)
74
  bias_model_checker = BetterTransformer.transform(bias_model_checker, keep_original_model=False)
75
  bias_checker = pipeline(
76
  "text-classification",
77
- model=model,
78
- tokenizer=tokenizer,
79
  )
80
  gc.collect()
81
  bias_corrector = pipeline(
 
74
  bias_model_checker = BetterTransformer.transform(bias_model_checker, keep_original_model=False)
75
  bias_checker = pipeline(
76
  "text-classification",
77
+ model=bias_checker_model_name,
78
+ tokenizer=bias_checker_model_name,
79
  )
80
  gc.collect()
81
  bias_corrector = pipeline(