@@ -1988,19 +1988,24 @@ class ContractAmts(object):
19881988 A monetary amount identified in the input document.
19891989
19901990 :attr str text: (optional) The monetary amount.
1991+ :attr str confidence_level: (optional) The confidence level in the identification of
1992+ the contract amount.
19911993 :attr Location location: (optional) The numeric location of the identified element in
19921994 the document, represented with two integers labeled `begin` and `end`.
19931995 """
19941996
1995- def __init__ (self , text = None , location = None ):
1997+ def __init__ (self , text = None , confidence_level = None , location = None ):
19961998 """
19971999 Initialize a ContractAmts object.
19982000
19992001 :param str text: (optional) The monetary amount.
2002+ :param str confidence_level: (optional) The confidence level in the identification
2003+ of the contract amount.
20002004 :param Location location: (optional) The numeric location of the identified
20012005 element in the document, represented with two integers labeled `begin` and `end`.
20022006 """
20032007 self .text = text
2008+ self .confidence_level = confidence_level
20042009 self .location = location
20052010
20062011 @classmethod
@@ -2009,6 +2014,8 @@ def _from_dict(cls, _dict):
20092014 args = {}
20102015 if 'text' in _dict :
20112016 args ['text' ] = _dict .get ('text' )
2017+ if 'confidence_level' in _dict :
2018+ args ['confidence_level' ] = _dict .get ('confidence_level' )
20122019 if 'location' in _dict :
20132020 args ['location' ] = Location ._from_dict (_dict .get ('location' ))
20142021 return cls (** args )
@@ -2018,6 +2025,9 @@ def _to_dict(self):
20182025 _dict = {}
20192026 if hasattr (self , 'text' ) and self .text is not None :
20202027 _dict ['text' ] = self .text
2028+ if hasattr (self ,
2029+ 'confidence_level' ) and self .confidence_level is not None :
2030+ _dict ['confidence_level' ] = self .confidence_level
20212031 if hasattr (self , 'location' ) and self .location is not None :
20222032 _dict ['location' ] = self .location ._to_dict ()
20232033 return _dict
@@ -2306,19 +2316,24 @@ class EffectiveDates(object):
23062316 An effective date.
23072317
23082318 :attr str text: (optional) The effective date, listed as a string.
2319+ :attr str confidence_level: (optional) The confidence level in the identification of
2320+ the effective date.
23092321 :attr Location location: (optional) The numeric location of the identified element in
23102322 the document, represented with two integers labeled `begin` and `end`.
23112323 """
23122324
2313- def __init__ (self , text = None , location = None ):
2325+ def __init__ (self , text = None , confidence_level = None , location = None ):
23142326 """
23152327 Initialize a EffectiveDates object.
23162328
23172329 :param str text: (optional) The effective date, listed as a string.
2330+ :param str confidence_level: (optional) The confidence level in the identification
2331+ of the effective date.
23182332 :param Location location: (optional) The numeric location of the identified
23192333 element in the document, represented with two integers labeled `begin` and `end`.
23202334 """
23212335 self .text = text
2336+ self .confidence_level = confidence_level
23222337 self .location = location
23232338
23242339 @classmethod
@@ -2327,6 +2342,8 @@ def _from_dict(cls, _dict):
23272342 args = {}
23282343 if 'text' in _dict :
23292344 args ['text' ] = _dict .get ('text' )
2345+ if 'confidence_level' in _dict :
2346+ args ['confidence_level' ] = _dict .get ('confidence_level' )
23302347 if 'location' in _dict :
23312348 args ['location' ] = Location ._from_dict (_dict .get ('location' ))
23322349 return cls (** args )
@@ -2336,6 +2353,9 @@ def _to_dict(self):
23362353 _dict = {}
23372354 if hasattr (self , 'text' ) and self .text is not None :
23382355 _dict ['text' ] = self .text
2356+ if hasattr (self ,
2357+ 'confidence_level' ) and self .confidence_level is not None :
2358+ _dict ['confidence_level' ] = self .confidence_level
23392359 if hasattr (self , 'location' ) and self .location is not None :
23402360 _dict ['location' ] = self .location ._to_dict ()
23412361 return _dict
@@ -4488,19 +4508,24 @@ class TerminationDates(object):
44884508 Termination dates identified in the input document.
44894509
44904510 :attr str text: (optional) The termination date.
4511+ :attr str confidence_level: (optional) The confidence level in the identification of
4512+ the termination date.
44914513 :attr Location location: (optional) The numeric location of the identified element in
44924514 the document, represented with two integers labeled `begin` and `end`.
44934515 """
44944516
4495- def __init__ (self , text = None , location = None ):
4517+ def __init__ (self , text = None , confidence_level = None , location = None ):
44964518 """
44974519 Initialize a TerminationDates object.
44984520
44994521 :param str text: (optional) The termination date.
4522+ :param str confidence_level: (optional) The confidence level in the identification
4523+ of the termination date.
45004524 :param Location location: (optional) The numeric location of the identified
45014525 element in the document, represented with two integers labeled `begin` and `end`.
45024526 """
45034527 self .text = text
4528+ self .confidence_level = confidence_level
45044529 self .location = location
45054530
45064531 @classmethod
@@ -4509,6 +4534,8 @@ def _from_dict(cls, _dict):
45094534 args = {}
45104535 if 'text' in _dict :
45114536 args ['text' ] = _dict .get ('text' )
4537+ if 'confidence_level' in _dict :
4538+ args ['confidence_level' ] = _dict .get ('confidence_level' )
45124539 if 'location' in _dict :
45134540 args ['location' ] = Location ._from_dict (_dict .get ('location' ))
45144541 return cls (** args )
@@ -4518,6 +4545,9 @@ def _to_dict(self):
45184545 _dict = {}
45194546 if hasattr (self , 'text' ) and self .text is not None :
45204547 _dict ['text' ] = self .text
4548+ if hasattr (self ,
4549+ 'confidence_level' ) and self .confidence_level is not None :
4550+ _dict ['confidence_level' ] = self .confidence_level
45214551 if hasattr (self , 'location' ) and self .location is not None :
45224552 _dict ['location' ] = self .location ._to_dict ()
45234553 return _dict
0 commit comments