bert_max_doc_str_max_str_pos_clean_doc_noise_doc/run_doc_qa.py
def to_json(self):
        """Serializes the object into the json form."""
        attr_val_list = []
        for attr in self.__slots__:
            if attr == 'feature_list':
                continue
            attr_val_list.append((attr, getattr(self, attr)))

        attr_val_list.append((
            'feature_list', [feature.to_json() for feature in self.feature_list]
        ))
        return json.dumps(dict(attr_val_list))
Serializes the object into the json form.
Serializes the object into the json form.
Serializes the object into the json form .
def to_json(self):
        attr_val_list = []
        for attr in self.__slots__:
            if attr == 'feature_list':
                continue
            attr_val_list.append((attr, getattr(self, attr)))
        attr_val_list.append((
            'feature_list', [feature.to_json() for feature in self.feature_list]
        ))
        return json.dumps(dict(attr_val_list))
def to_json ( self ) : attr_val_list = [ ] for attr in self . __slots__ : if attr == 'feature_list' : continue attr_val_list . append ( ( attr , getattr ( self , attr ) ) ) attr_val_list . append ( ( 'feature_list' , [ feature . to_json ( ) for feature in self . feature_list ] ) ) return json . dumps ( dict ( attr_val_list ) )
Serializes the object into the json form.
Serializes the object into the json form .
"""Serializes the object into the json form."""
self