joehare commited on
Commit
07f0f1f
·
1 Parent(s): 2df3395

Delete main.py

Browse files
Files changed (1) hide show
  1. main.py +0 -19
main.py DELETED
@@ -1,19 +0,0 @@
1
- from sentence_transformers import SentenceTransformer, util
2
-
3
- model = SentenceTransformer('all-MiniLM-L6-v2')
4
-
5
- # Single list of sentences - Possible tens of thousands of sentences
6
- sentences = ['The cat sits outside',
7
- 'A man is playing guitar',
8
- 'I love pasta',
9
- 'The new movie is awesome',
10
- 'The cat plays in the garden',
11
- 'A woman watches TV',
12
- 'The new movie is so great',
13
- 'Do you like pizza?']
14
-
15
- paraphrases = util.paraphrase_mining(model, sentences)
16
-
17
- for paraphrase in paraphrases[0:10]:
18
- score, i, j = paraphrase
19
- print("{} \t\t {} \t\t Score: {:.4f}".format(sentences[i], sentences[j], score))