Commit
·
2fb66fc
1
Parent(s):
f0355aa
Update Climate_site/python_scripts/patent_functions_own_details.py
Browse files
Climate_site/python_scripts/patent_functions_own_details.py
CHANGED
|
@@ -18,6 +18,10 @@ import spacy
|
|
| 18 |
|
| 19 |
from sentence_transformers import SentenceTransformer, util
|
| 20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
@st.cache_resource
|
| 22 |
def model_nlp():
|
| 23 |
model = SentenceTransformer('all-MiniLM-L6-v2')
|
|
@@ -36,7 +40,7 @@ from geopandas import GeoDataFrame
|
|
| 36 |
|
| 37 |
@st.cache_data # 👈 Add the caching decorator
|
| 38 |
def load_data():
|
| 39 |
-
url = "
|
| 40 |
dic = pd.read_csv(url, delimiter = "\t" , index_col = 0).to_dict('index')
|
| 41 |
return dic
|
| 42 |
|
|
|
|
| 18 |
|
| 19 |
from sentence_transformers import SentenceTransformer, util
|
| 20 |
|
| 21 |
+
|
| 22 |
+
path = "Climate_site/python_scripts/"
|
| 23 |
+
|
| 24 |
+
|
| 25 |
@st.cache_resource
|
| 26 |
def model_nlp():
|
| 27 |
model = SentenceTransformer('all-MiniLM-L6-v2')
|
|
|
|
| 40 |
|
| 41 |
@st.cache_data # 👈 Add the caching decorator
|
| 42 |
def load_data():
|
| 43 |
+
url = path + "institutions.tsv"
|
| 44 |
dic = pd.read_csv(url, delimiter = "\t" , index_col = 0).to_dict('index')
|
| 45 |
return dic
|
| 46 |
|