# Path: chemdataextractor/parse/elements.py
# W = Word
# 
# T = Tag
# 
# R = Regex
# 
# class Optional(ParseElementEnhance):
# 
#     def __init__(self, expr):
#         super(Optional, self).__init__(expr)
# 
#     def _parse_tokens(self, tokens, i, actions=True):
#         results = []
#         try:
#             results, i = self.expr.parse(tokens, i, actions)
#         except (ParseException, IndexError):
#             pass
#         return results, i


import logging
import re
from .elements import W, T, R, Optional
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Common parser elements.

"""

from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals



log = logging.getLogger(__name__)

# Part-of-Speech Tags
nn = T('NN')
iin = T('IN')  # in is a reserved keyword in python
nnp = T('NNP')
dt = T('DT')
nns = T('NNS')
jj = T('JJ')
comma = T(',')
stop = T('.')
cd = T('CD')
rb = T('RB')
vbd = T('VBD')
vb = T('VB')
cc = T('CC')
vbn = T('VBN')

# Path: chemdataextractor/parse/elements.py
# W = Word
# 
# T = Tag
# 
# R = Regex
# 
# class Optional(ParseElementEnhance):
# 
#     def __init__(self, expr):
#         super(Optional, self).__init__(expr)
# 
#     def _parse_tokens(self, tokens, i, actions=True):
#         results = []
#         try:
#             results, i = self.expr.parse(tokens, i, actions)
#         except (ParseException, IndexError):
#             pass
#         return results, i


# Path: chemdataextractor/parse/common.py
import logging
import re
from .elements import W, T, R, Optional

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Common parser elements.

"""

from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals



log = logging.getLogger(__name__)

# Part-of-Speech Tags
nn = T('NN')
iin = T('IN')  # in is a reserved keyword in python
nnp = T('NNP')
dt = T('DT')
nns = T('NNS')
jj = T('JJ')
comma = T(',')
stop = T('.')
cd = T('CD')
rb = T('RB')
vbd = T('VBD')
vb = T('VB')
cc = T('CC')
vbn = T('VBN')

vbz = T('VBZ')