namb0010 commited on
Commit
92daf4e
·
1 Parent(s): cdcef37

Update [uma_namboothiripad]assignment_2 (1).py

Browse files
[uma_namboothiripad]assignment_2 (1).py CHANGED
@@ -17,6 +17,7 @@ Load the dataset below
17
  """I was having issues connecting my csv file to the colab notebook, so I ended up connecting this to my drive"""
18
 
19
  import spacy
 
20
  from spacy.lang.en.stop_words import STOP_WORDS
21
  from string import punctuation
22
  from collections import Counter
@@ -103,8 +104,9 @@ from sentence_transformers import SentenceTransformer
103
 
104
  embedder = SentenceTransformer('all-MiniLM-L6-v2')
105
  embedder = SentenceTransformer('bert-base-nli-mean-tokens')
 
106
 
107
- df = pd.read_csv('/content/drive/My Drive/Colab Notebooks/Assignment#2/HotelListInBarcelona__en2019100120191005.csv',sep=",", encoding='cp1252')
108
 
109
  !kaggle datasets download --force -d hamzafarooq50/hotel-listings-and-reviews
110
 
 
17
  """I was having issues connecting my csv file to the colab notebook, so I ended up connecting this to my drive"""
18
 
19
  import spacy
20
+ from datasets import load_dataset
21
  from spacy.lang.en.stop_words import STOP_WORDS
22
  from string import punctuation
23
  from collections import Counter
 
104
 
105
  embedder = SentenceTransformer('all-MiniLM-L6-v2')
106
  embedder = SentenceTransformer('bert-base-nli-mean-tokens')
107
+ df = load_dataset("namb0010/Barcelona")
108
 
109
+ #df = pd.read_csv('/content/drive/My Drive/Colab Notebooks/Assignment#2/HotelListInBarcelona__en2019100120191005.csv',sep=",", encoding='cp1252')
110
 
111
  !kaggle datasets download --force -d hamzafarooq50/hotel-listings-and-reviews
112