o 6h@s$ddlmZddlmZddZdS)) load_model)loggerc Csz$tdd}||ddddg}|dddk}|t|ddd WStyE}ztd t|d d d WYd}~Sd}~ww) Nzzero-shot-classificationz typeform/mobilebert-uncased-mnliizproperty-relatedznon-property-relatedlabelsscores) is_related confidencez"Error checking property relation: Fg)rfloat Exceptionrerrorstr)text classifierresultrer3D:\propertyverify_final\models\property_relation.pycheck_if_property_relateds rN) model_loaderrlogging_configrrrrrrs