WordCloud

Out of boredom, I wrote a little script to parse my posts and find out which words I most commonly use on tfk, i’ve filtered out some common words. Probably need to filter out more

I can do this for any poster, with consent to download their posts (if feature is available @Rocko)

be a bit of craic.

words

3 Likes

Cunt?

I’ll be disappointed if the below words don’t feature high on my list.

IPTV
Fixed
Romania
Sources
Cider

2 Likes

Will I try do it for your posts if I can download them?

Send me on script sure. I know how to download my posts

it’s python, do you have a python environment? there are a few dependencies

Guessing would be more fun:

Trump
Fascist
Cunt
Corona
Liverpool

You must be really bored indeed.

we’re on a lockdown mate

1 Like

@Thomas_Brady @Copper_pipe… there’s the code if you can get it running

import pandas as pd 
from os import path
from PIL import Image
from wordcloud import WordCloud, STOPWORDS, ImageColorGenerator

import matplotlib.pyplot as plt
from Tkinter import Tk
import tkFileDialog as filedialog

filename = filedialog.askopenfilename()

df = pd.read_csv(filename, index_col=0)

print("There are {} posts. \n".format(df.shape[0]))

text = " ".join(post for post in df.post)
print ("There are {} words in all posts.".format(len(text)))
stopWords = ["quote", "topic", "post", "one", "got"]
[STOPWORDS.add(n) for n in stopWords]
wordcloud = WordCloud(stopwords=STOPWORDS, background_color="white").generate(text)

plt.imshow(wordcloud, interpolation='bilinear')
plt.axis("off")
plt.savefig("words.png")
2 Likes

Would you know to write a python code to read basic information from a disk image? Like number of partitions , partition type, size etc.

Yes please

I havent gotten that far yet.

Ran it for @myboyblue:

:wink: :rollseyes: wooly :pint:

6 Likes

you’d want access to all the cpu’s in the public cloud to run it for the amount of posts he has

what format is the disk image?

I haven’t the functionality to download your posts. If you want to download them and then put them up here I can run it for you… just filter out private messages mate

1 Like

Gobshite

here mate…

why reinvent the wheel?

Ask my college lecturer :grinning: