Spaces:
Runtime error
Runtime error
fuhsiao418
commited on
Commit
·
c8c49cc
1
Parent(s):
d468362
update
Browse files- utils/preprocess.py +1 -1
utils/preprocess.py
CHANGED
|
@@ -143,7 +143,7 @@ def similarity(lst, ptm):
|
|
| 143 |
def feature_extraction(title, section, sents):
|
| 144 |
lst = sent_lst(sents)
|
| 145 |
tfisf = Tfisf(lst)
|
| 146 |
-
cosine = similarity(lst, "
|
| 147 |
|
| 148 |
# Number of sentences
|
| 149 |
ns = len(sents)
|
|
|
|
| 143 |
def feature_extraction(title, section, sents):
|
| 144 |
lst = sent_lst(sents)
|
| 145 |
tfisf = Tfisf(lst)
|
| 146 |
+
cosine = similarity(lst, "model/all-MiniLM-L6-v2")
|
| 147 |
|
| 148 |
# Number of sentences
|
| 149 |
ns = len(sents)
|