예제 #1
0
 def value_specifier_cem(self):
     return (Optional(I('of')) \
             + self.value_phrase \
             + Optional(delim) \
             + Optional(I('which') | I('that')).hide()
             + Optional(I('has') + I('been') | I('was') | I('is') | I('were')).hide() \
             + Optional(I('found') | I('observed') | I('measured') | I('calculated') | I('determined')).hide()
             + Optional(I('likely') | I('close') | (I('can') + I('be'))).hide() \
             + Optional(I('corresponds') | I('associated')).hide() \
             + Optional(I('to') + I('be') | I('with') | I('is') | I('as')).hide() \
             + Optional(I('the')).hide() \
             + self.specifier_phrase \
             + Optional(I('of') | I('in')).hide() \
             + (self.cem_phrase))('root_phrase')
예제 #2
0
 def specifier_cem_value(self):
     return (Optional(I('the') | I('a') | I('an') | I('its') | I('with')).hide() \
             + self.specifier_phrase \
             + Optional(I('of') | I('in') | I('for')).hide() \
             + Optional(
             I('bulk') | I('powdered') | I('doped') | I('the') | I('a') | I('an') | I('these') | I('those') | I('this') | I('that')).hide() \
             + Optional(self.cem_phrase) \
             + Optional(I('is') | I('was') | I('were') | I('occurs') | I('of') | (
             I('can') + I('be') + I('assigned') + Optional(I('at') | I('to')))).hide() \
             + Optional(I('observed') | I('determined') | I('measured') | I('calculated') | I('found')).hide() \
             + Optional(I('in') + I('the') + I('range') + I('of') | I('ranging') + I('from') | I('as') | I('to') + I('be')
             | I('about') | I('over') | (I('higher') | I('lower')) + I('than') | I('above')).hide() \
             + Optional(W('=') | W('~') | W('≈') | W('≃') | I('of') | I('was') | I('is') | I('at') | I('as') | I('near') | I('above') | I('below')).hide()
             + Optional(lbrct).hide() \
             + (self.value_phrase)
             + Optional(rbrct))('root_phrase')
예제 #3
0
 def specifier_value_cem(self):
     return (Optional(I('below') | I('at')) \
             + self.specifier_and_value \
             + Optional((I('has') + I('been') + I('found') + I('for')) | (
             I('was') + (I('observed') | I('determined') | I('measured') | I('calculated')))).hide() \
             + Optional(I('in') | I('for') | I('of')).hide() \
             + Optional(I('the')).hide() \
             + Optional(R('^[:;,]$')).hide() \
             + Optional(I('bulk') | I('powdered') | I('doped') | (I('thin') + I('film'))).hide()
             + Optional(rbrct) \
             + Optional(self.cem_phrase))('root_phrase')
예제 #4
0
 def connection(self):
     return (I('of') | I('about') | I('for') | I('as') + I('regards')
             | I('attributed') + I('to') | I('concerning'))
예제 #5
0
 def cem_specifier_value(self):
     return ((
         Optional(self.cem_phrase) + Optional(delim).hide() +
         Optional(I('samples') | I('system') | I('systems') | I('sample')) +
         Optional(
             I('that') | I('which') | I('was') | I('since')
             | I('the')).hide() + Optional(I('typically')).hide() +
         Optional(
             I('exhibits') | I('exhibiting') | R('^show[s]*$')
             | I('demonstrates') | I('undergoes') | I('has') | I('having')
             | I('determined') | I('with') | I('where') | I('orders')
             | (I('is') + Optional(I('classified') + I('as')))).hide() +
         Optional(I('reported') + I('to') + I('have')).hide() +
         Optional(lbrct).hide() + self.specifier_and_value +
         Optional(rbrct))('root_phrase'))
예제 #6
0
 def between_cem_specifier(self):
     return (self.passive_be +
             +self.passive_had(I('to') | I('that') | I('which')) +
             self.have + self.article | self.have + self.article)
예제 #7
0
 def between_value_cem(self):
     return (self.passive_be + self.passive_had +
             (I('to') | I('that') | I('which')) + self.have
             | self.connection)
예제 #8
0
 def passive_be(self):
     return (I('was') | I('is') | I('are') | I('were') | I('been'))
예제 #9
0
 def passive_had(self):
     return (I('found') | I('determined') | I('estimated') | I('measured')
             | I('afforded') | I('obtained') | I('yielded'))
예제 #10
0
 def have(self):
     return (I('own') | I('owns') | I('have') | I('has') | I('process')
             | I('processes') | I('holds') | I('experiences') | I('retains')
             | I('hold') | I('experience') | I('retain') | I('carry')
             | I('carries') | I('admits') | I('admit') | I('take')
             | I('takes'))
예제 #11
0
 def article(self):
     return (I('a') | I('an') | I('the'))
예제 #12
0
class BpRegex:
    prefix = (R(u'^b\.?p\.?$', re.I)
              | I(u'boiling') + I(u'point')).hide()  #u-createsunicodestring
    units = (W(u'°') + Optional(R(u'^[CFK]\.?$')))(u'units').add_action(merge)
    value = R(u'^\d+(\.\d+)?$')(u'value')
    bp = (prefix + value + units)(u'bp')