MattStammers commited on
Commit
c68fce5
·
1 Parent(s): 94d13e5

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +12 -12
README.md CHANGED
@@ -1,13 +1,13 @@
1
  ---
2
  language: en
3
  license: mit
4
- model_id: test_trainer
5
  developers: Matt Stammers
6
  model_type: BERT-Base-Uncased
7
  model_summary: This model Compares the similarity of two text objects.
8
  shared_by: Matt Stammers
9
  finetuned_from: Glue
10
- repo: https://huggingface.co/MattStammers/test-trainer?text=I+like+you.+I+love+you
11
  paper: N/A
12
  demo: N/A
13
  direct_use: Test it out here
@@ -18,10 +18,10 @@ bias_risks_limitations: Biases inherent in Glue also apply here
18
  bias_recommendations: Do not be surprised if unusual results are obtained
19
  get_started_code: "\n ``` python \n # Use a pipeline as a high-level helper\n\
20
  \ from transformers import pipeline\n\n pipe = pipeline(\"text-classification\"\
21
- , model=\"MattStammers/test-trainer\")\n # Load model directly\n from\
22
- \ transformers import AutoTokenizer, AutoModelForSequenceClassification\n\n \
23
- \ tokenizer = AutoTokenizer.from_pretrained(\"MattStammers/test-trainer\")\n\
24
- \ model = AutoModelForSequenceClassification.from_pretrained(\"MattStammers/test-trainer\"\
25
  )\n ```\n "
26
  training_data: 'See Glue Dataset: https://huggingface.co/datasets/glue'
27
  preprocessing: Sentence Pairs to analyse similarity
@@ -48,7 +48,7 @@ more_information: Can be made available on request
48
  model_card_authors: Matt Stammers
49
  model_card_contact: Matt Stammers
50
  model-index:
51
- - name: test_trainer
52
  results:
53
  - task:
54
  type: text-classification
@@ -62,7 +62,7 @@ model-index:
62
  value: 0.8945578231292517
63
  ---
64
 
65
- # Model Card for test_trainer
66
 
67
  <!-- Provide a quick summary of what the model is/does. -->
68
 
@@ -87,7 +87,7 @@ This model Compares the similarity of two text objects.
87
 
88
  <!-- Provide the basic links for the model. -->
89
 
90
- - **Repository:** https://huggingface.co/MattStammers/test-trainer?text=I+like+you.+I+love+you
91
  - **Paper [optional]:** N/A
92
  - **Demo [optional]:** N/A
93
 
@@ -134,12 +134,12 @@ Use the code below to get started with the model.
134
  # Use a pipeline as a high-level helper
135
  from transformers import pipeline
136
 
137
- pipe = pipeline("text-classification", model="MattStammers/test-trainer")
138
  # Load model directly
139
  from transformers import AutoTokenizer, AutoModelForSequenceClassification
140
 
141
- tokenizer = AutoTokenizer.from_pretrained("MattStammers/test-trainer")
142
- model = AutoModelForSequenceClassification.from_pretrained("MattStammers/test-trainer")
143
  ```
144
 
145
 
 
1
  ---
2
  language: en
3
  license: mit
4
+ model_id: Statement_Equivalence
5
  developers: Matt Stammers
6
  model_type: BERT-Base-Uncased
7
  model_summary: This model Compares the similarity of two text objects.
8
  shared_by: Matt Stammers
9
  finetuned_from: Glue
10
+ repo: https://huggingface.co/MattStammers/Statement_Equivalence?text=I+like+you.+I+love+you
11
  paper: N/A
12
  demo: N/A
13
  direct_use: Test it out here
 
18
  bias_recommendations: Do not be surprised if unusual results are obtained
19
  get_started_code: "\n ``` python \n # Use a pipeline as a high-level helper\n\
20
  \ from transformers import pipeline\n\n pipe = pipeline(\"text-classification\"\
21
+ , model=\"MattStammers/Statement_Equivalence\")\n # Load model directly\n \
22
+ \ from transformers import AutoTokenizer, AutoModelForSequenceClassification\n\
23
+ \n tokenizer = AutoTokenizer.from_pretrained(\"MattStammers/Statement_Equivalence\"\
24
+ )\n model = AutoModelForSequenceClassification.from_pretrained(\"MattStammers/Statement_Equivalence\"\
25
  )\n ```\n "
26
  training_data: 'See Glue Dataset: https://huggingface.co/datasets/glue'
27
  preprocessing: Sentence Pairs to analyse similarity
 
48
  model_card_authors: Matt Stammers
49
  model_card_contact: Matt Stammers
50
  model-index:
51
+ - name: statement
52
  results:
53
  - task:
54
  type: text-classification
 
62
  value: 0.8945578231292517
63
  ---
64
 
65
+ # Model Card for Statement_Equivalence
66
 
67
  <!-- Provide a quick summary of what the model is/does. -->
68
 
 
87
 
88
  <!-- Provide the basic links for the model. -->
89
 
90
+ - **Repository:** https://huggingface.co/MattStammers/Statement_Equivalence?text=I+like+you.+I+love+you
91
  - **Paper [optional]:** N/A
92
  - **Demo [optional]:** N/A
93
 
 
134
  # Use a pipeline as a high-level helper
135
  from transformers import pipeline
136
 
137
+ pipe = pipeline("text-classification", model="MattStammers/Statement_Equivalence")
138
  # Load model directly
139
  from transformers import AutoTokenizer, AutoModelForSequenceClassification
140
 
141
+ tokenizer = AutoTokenizer.from_pretrained("MattStammers/Statement_Equivalence")
142
+ model = AutoModelForSequenceClassification.from_pretrained("MattStammers/Statement_Equivalence")
143
  ```
144
 
145