Getting Word Frequency from a Text File using Python Dictionaries

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

Hi, I am a college student majoring in computer engineering in South Korea. Your video really helped me a lot with my studies. Thank you.😊

최주연-xj
Автор

You are my most beautiful sunshine Adam Gaweda, you give me the light of my tunnel. You make the grey days bright with your wonderful smile. You are my pookie wookie stuffy bear-boy and I want to cherish you for days-on-end. Adam, I love you dai-dai-dai-dai-ski <3


:) :) :)

comrade_dankbob
Автор

How do I get the least frequent? Excellent video!! Thank you

RRBtv
Автор

hi thanks, can I use it for the Arabic language to count words for me

ammaralamin-zl
Автор

Hello, I enjoy watching your videos. This video helped a lot. I do have a question. How would you put the top ten words into a dictionary, where the key would be the word and the count would be the value?

bahaminakhtari
Автор

can you explain how to swap out the .txt file for a .csv file? I'm trying to add a user input line and when the user searches for a word in the csv file on column 3 it prints the output of how many occurrences the word is in the csv file. so far when i make the changes to csv and increase the increment by 1 it has an error message TypeError: string indices must be integers.

LukaDonesnitch
Автор

Thanks for this!

Using my own file (a .csv which I saved as .txt), I get the following output after running list.(word_count.keys())[:10] =
[' \x00']

Any suggestions of what to do? Does it make sense to rewrite the code to open the .csv, or will I run into the same problem?

Best
Thomas

thomaskersig
Автор

Do you teach a masters class at NCU? im aobut to finish my BA in Comp Sci and man you are an awesome teacher

andytamburino
Автор

sir, How to find out the count of unique words from multiple text file at one time?

pradnyakasar
Автор

Sir could you Pleasee guide me how to sort number of frequent words used in pdf document. because i want to learn the most important major words for exam would be very helpful 🙏🏽🙏🏽.

sharma
Автор

Thank you. I learned a lot. I also appeciate the comments in the code.
Only thing is that I didn't get rid off all the punctuation in my text (that I wrote myself as a dummy. I mass copied next to each other and it stayed that way).
Would be cool if you could share the code and the Alice in Wonderland text.

Vagabund