nikeshn commited on
Commit
ced6a0c
·
verified ·
1 Parent(s): dab2684

Update src/api/agent.py

Browse files
Files changed (1) hide show
  1. src/api/agent.py +1 -3
src/api/agent.py CHANGED
@@ -293,9 +293,7 @@ PARTIAL_TITLE_RE = re.compile(
293
  )
294
 
295
  DUAL_RESOURCE_RE = re.compile(
296
- r"\b(articles?.{0,30}(and|as well as|plus).{0,30}books?"
297
- r"|books?.{0,30}(and|as well as|plus).{0,30}articles?"
298
- r"|papers?.{0,30}(and|as well as|plus).{0,30}textbooks?"
299
  r"|textbooks?.{0,30}(and|as well as|plus).{0,30}papers?"
300
  r"|(literature review|articles?).{0,50}(background|textbook|introductory book)"
301
  r"|(textbook|book).{0,50}(literature review|research articles?))\b",
 
293
  )
294
 
295
  DUAL_RESOURCE_RE = re.compile(
296
+ r"\b(papers?.{0,30}(and|as well as|plus).{0,30}textbooks?"
 
 
297
  r"|textbooks?.{0,30}(and|as well as|plus).{0,30}papers?"
298
  r"|(literature review|articles?).{0,50}(background|textbook|introductory book)"
299
  r"|(textbook|book).{0,50}(literature review|research articles?))\b",