qtpi commited on
Commit
08b986d
·
verified ·
1 Parent(s): 28c7f4e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -12,9 +12,9 @@ class ConsistencyHandler:
12
  # self.miscExtraFields = set()
13
 
14
  self.articleImportantFields = {'year', 'author', 'title', 'journal', 'volume', 'pages'}
15
- self.inbookImportantFields = {'author', 'year', 'title', 'booktitle', 'publisher'}
16
  self.techreportImportantFields = {'title', 'author', 'institution', 'year', 'number'}
17
- self.inproceedingsImportantFields = {'author', 'title', 'booktitle', 'year', 'publisher', 'pages'}
18
  # self.miscImportantFields = set()
19
 
20
  self.articleCount = 0
@@ -205,11 +205,11 @@ def referenceErrorParser(bibtex_string: str, coordinateStr: str):
205
 
206
 
207
  # techreport
208
- elif entry['ENTRYTYPE']=="techreport":
209
- imp, cons = checker.checkTechreport(entry)
210
 
211
- entry['asterikError'] = list(imp)
212
- entry['consistencyError'] = list(cons)
213
 
214
  # inproceedings
215
  elif entry['ENTRYTYPE']=="inproceedings":
 
12
  # self.miscExtraFields = set()
13
 
14
  self.articleImportantFields = {'year', 'author', 'title', 'journal', 'volume', 'pages'}
15
+ self.inbookImportantFields = {'author', 'year', 'booktitle'} # to check for publisher, title
16
  self.techreportImportantFields = {'title', 'author', 'institution', 'year', 'number'}
17
+ self.inproceedingsImportantFields = {'author', 'title', 'booktitle', 'year', 'pages'} # to check for publisher
18
  # self.miscImportantFields = set()
19
 
20
  self.articleCount = 0
 
205
 
206
 
207
  # techreport
208
+ # elif entry['ENTRYTYPE']=="techreport":
209
+ # imp, cons = checker.checkTechreport(entry)
210
 
211
+ # entry['asterikError'] = list(imp)
212
+ # entry['consistencyError'] = list(cons)
213
 
214
  # inproceedings
215
  elif entry['ENTRYTYPE']=="inproceedings":