Update README.md
Browse files
README.md
CHANGED
|
@@ -102,8 +102,7 @@ BERT Natural Language Outputs:
|
|
| 102 |
|
| 103 |
# 5\. Example usage
|
| 104 |
|
| 105 |
-
This is a minimal-code example of how to use
|
| 106 |
-
This model is public and doesn't require login to download. Use `snapshot_download` to get the full model, latest version.
|
| 107 |
```
|
| 108 |
repo_id = 'GivingTuesday/religious_org_v1'
|
| 109 |
from huggingface_hub import snapshot_download
|
|
@@ -152,3 +151,13 @@ for i, result in enumerate(results):
|
|
| 152 |
|
| 153 |
```
|
| 154 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 102 |
|
| 103 |
# 5\. Example usage
|
| 104 |
|
| 105 |
+
This is a minimal-code example of how to use this model to classify texts as related to a religion (or none). This model is public and doesn't require login to download. Use `snapshot_download` to get the latest version of the full model.
|
|
|
|
| 106 |
```
|
| 107 |
repo_id = 'GivingTuesday/religious_org_v1'
|
| 108 |
from huggingface_hub import snapshot_download
|
|
|
|
| 151 |
|
| 152 |
```
|
| 153 |
|
| 154 |
+
### Output (actual reddit comments):
|
| 155 |
+
```
|
| 156 |
+
Text: 'St. John's Episcopal is a really beautiful community that preaches "faith in action" -- they welcome and assist migrants, partner with community organizations, run a housing first apartment building for unhoused folks, and they are part of the Together Colorado coalition of faith-based organizations that lobbies for anti-poverty legislation. Bonus: the cathedral is gorgeous and historic.'
|
| 157 |
+
Classification Results:
|
| 158 |
+
- Label: Christianity, Score: 0.8822
|
| 159 |
+
|
| 160 |
+
Text: 'I’m atheist but rehearse in a community choir at Christ Church United Methodist and they have pro LGBTQ+ stuff everywhere. They even do a reconciliation Sunday service every year in June during pride month'
|
| 161 |
+
Classification Results:
|
| 162 |
+
- Label: Christianity, Score: 0.9899
|
| 163 |
+
```
|