bert_max_doc_str_max_str_pos_clean_doc_noise_doc/run_doc_qa.py
def parse_from_json(self, json_string):
        """Parses the object from a given json string."""
        attr_dict = json.loads(json_string)
        for attr in self.__slots__:
            if attr == 'feature_list':
                val = [
                    InputFeatures.load_from_json(feature_json)
                    for feature_json in attr_dict[attr]
                ]
            else:
                val = attr_dict[attr]
            setattr(self, attr, val)
        return True
Parses the object from a given json string.
Parses the object from a given json string.
Parses the object from a given json string .
def parse_from_json(self, json_string):
        attr_dict = json.loads(json_string)
        for attr in self.__slots__:
            if attr == 'feature_list':
                val = [
                    InputFeatures.load_from_json(feature_json)
                    for feature_json in attr_dict[attr]
                ]
            else:
                val = attr_dict[attr]
            setattr(self, attr, val)
        return True
def parse_from_json ( self , json_string ) : attr_dict = json . loads ( json_string ) for attr in self . __slots__ : if attr == 'feature_list' : val = [ InputFeatures . load_from_json ( feature_json ) for feature_json in attr_dict [ attr ] ] else : val = attr_dict [ attr ] setattr ( self , attr , val ) return True
Parses the object from a given json string.
Parses the object from a given json string .
"""Parses the object from a given json string."""
self
json_string