You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
289 B

import re
AVG_MICRO = 'MICRO'
AVG_MACRO = 'MACRO'
REGEX_CONSTANTS = {
'ACRONYM': re.compile(r"\s*\b[A-Z.]{2,}s?\b\s*"),
'CONTAINS_YEAR': re.compile('.*([1-2][0-9]{3})'),
'SEQUENCE': re.compile(r'\s+\((\d+,* *)*\)\s+'),
'REFERENCE': re.compile(r"\s*\[(\d+,* *)*\]\s*")
}