File size: 861 Bytes
86f2d3a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# %%
import printj
from story_gen import StoryGenerator

gen = StoryGenerator()
# # %%
# story_till_now, emotion = gen.story(story_till_now='Hello, I\'m a language model,', num_generation=3, length=10)
# printj.purple(story_till_now)
# printj.yellow(emotion)


# %%
gen.get_stats(story_till_now="For myriad of eons i’ve forgotten who I really was, harvesting the essence of all existence.",
             length=10, num_generation=3, num_tests=50)

# %%
gen.save_stats('/home/jitesh/haru/ist/results/a.xlsx')




# %%
data=gen.stats_df[gen.stats_df.sentence_no==3]
import seaborn as sns
sns.set_theme(style="whitegrid")
# ax = sns.violinplot(x="day", y="total_bill", data=tips)
ax = sns.violinplot(x="reaction_weight", y="num_reactions", data=data).set_title('Analysing ProbabilityEmote (Max reactions=3)')
# %%

gen.stats_df[gen.stats_df.sentence_no==3]
# %%