compliants#

class predict_backend.ml.nlp.compliants.PandasCompliant#

Bases: ABC

Interface for a pd DataFrame.

classmethod get_df_table_name()#
Return type:

str

classmethod get_feature_columns()#
Return type:

List

classmethod init_dataframe()#
Return type:

DataFrame

classmethod to_df(doc, idx_col)#
Return type:

DataFrame

classmethod to_dict(doc, idx_col)#
Return type:

List[Dict]

class predict_backend.ml.nlp.compliants.SqlCompliant#

Bases: ABC

Interface with a relational db.

classmethod get_sql_table_name()#
Return type:

str

classmethod init_sql_db()#
Return type:

str

classmethod transform_sql(doc, idx_col, value_placeholder='%s')#
Return type:

Tuple[str, List]