fixes absolute paths

This commit is contained in:
Jonas Weinz 2018-06-10 17:57:16 +02:00
parent e9f3118b94
commit 76fdd91e9d

View File

@ -27,7 +27,7 @@ N=3
#read in csv as panda file
df = pd.read_csv("/Users/Carsten/GitRepos/NLP-LAB/Project/Tools/Emoji_Sentiment_Data_v1.0.csv", delimiter=";")
df = pd.read_csv("../Tools/Emoji_Sentiment_Data_v1.0.csv", delimiter=";")
#df.head()
@ -65,7 +65,7 @@ def dataframe_to_dictionary():
# In[4]:
# create global emoji lists and datasets
data , data_only_emoticons, list_sentiment_vectors , list_emojis , list_sentiment_emoticon_vectors , list_emoticon_emojis = dataframe_to_dictionary()
@ -219,7 +219,7 @@ def show_demo_min_distances(only_emoticons = True):
# In[29]:
show_demo_min_distances()
#show_demo_min_distances()
# In[30]:
@ -237,11 +237,11 @@ show_demo_min_distances()
# In[36]:
[(e,sentiment_vector_to_emoji(emoji_to_sentiment_vector(e,only_emoticons=False))) for e in list_emojis]
#[(e,sentiment_vector_to_emoji(emoji_to_sentiment_vector(e,only_emoticons=False))) for e in list_emojis]
# In[26]:
sentiment_vector_to_emoji(np.array([ 0.72967448, 0.05173769, 0.21858783]))
#sentiment_vector_to_emoji(np.array([ 0.72967448, 0.05173769, 0.21858783]))