CMClassifier / README.md
mamakos's picture
Update README.md
12822aa verified
|
Raw
History Blame Contribute Delete
1.1 kB
metadata
library_name: peft
base_model: teknium/OpenHermes-2.5-Mistral-7B

Model Card for Model ID

Model Description

This model is a classifier of closed-mindedness: the unwillingness to have one's knowledge confronted by alternative opinions or inconsistent evidence.

# install the module
pip install closedmindedness
# import and use the module to estimate the probability 
# a text displays closed-mindedness
import closedmindedness

model = closedmindedness.classifier()

text_1 = "Nothing can make me change my mind."
text_2 = "Let's discuss this."
text_3 = "I went to the movies yesterday."
texts = [text_1, text_2, text_3]
probs = model.predict(texts)
print(probs) # [9.71055567e-01 1.70469284e-05 3.33786011e-06]

prob = model.predict(text_1)
print(prob) # [0.97105557]

Citation

If you use this model in your research, please cite: TBA

Framework versions

  • PEFT 0.8.2