ok
but
how can I solve it?
User Profile
Collapse
-
alivip started a topic my code is trying to get double word from multube files but give errore please helpin Pythonmy code is trying to get double word from multube files but give errore please help
How can I get every Token (word) and PreviousToken(P revious word) From multube files and frequency of each two word
my code is trying to get all single word and double word (every Token (word) and PreviousToken(P revious word)) from multube files and get frequency of both. it can get for single word but double word give error
line 50, in most_frequant_w ord
word1+= ' ' + word_list[ix+1]
IndexError:... -
how to go over the txt file to get all (two) from file?PLZ help
How can I get every Token (word) and PreviousToken(P revious word) From text file
For example if the text file content is
"Every man has a price. Every woman has a price."
First Token(word) is "Every" PreviousToken(P revious word) is none(no previos)
Second Token(word) is "man" PreviousToken(P revious word) is "Every"
Third Token(word) is "has" PreviousToken(P revious... -
alivip started a topic how to modify my code to get every word & previos word from file? please helpin Pythonhow to modify my code to get every word & previos word from file? please help
I write code to get most frequent words in the file
I won't to implement bigram probability by modifying the code to do the following:
How can I get every Token (word) and PreviousToken(P revious word) and frequency and probability
From text file and put each one in cell in table
For example if the text file content is
"Every man has a price. Every woman has a price."
First... -
alivip replied to How to inser (anyting I print) to the textbox (TKinter) ?try but it hang? pleas helpin PythonFirstly thank you very much for your help
Secondly I am really sorry for madding you angry
Thirdly I promise I will not do it againLeave a comment:
-
alivip started a topic How to inser (anyting I print) to the textbox (TKinter) ?try but it hang? pleas helpin PythonHow to inser (anyting I print) to the textbox (TKinter) ?try but it hang? pleas help
when I wont to inser (anyting I print) to the textbox it will not inser
it just print then hanging
...Code:# a look at the Tkinter Text widget # use ctrl+c to copy, ctrl+x to cut selected text, # ctrl+v to paste, and ctrl+/ to select all # count words in a text and show the first ten items # by decreasing frequency import Tkinter as tk import os, glob import
-
alivip replied to how to ingrate my code to read txt file in dirctory(folder)and subdirectory? PLZ helpin PythonI fix the error now
but
it will not insert to the textbox
it just print then hanging
...Code:# a look at the Tkinter Text widget # use ctrl+c to copy, ctrl+x to cut selected text, # ctrl+v to paste, and ctrl+/ to select all # count words in a text and show the first ten items # by decreasing frequency import Tkinter as tk import os, glob import
Leave a comment:
-
I fix the error now
but
it will not insert to the textbox
it just print then hanging
...Code:# a look at the Tkinter Text widget # use ctrl+c to copy, ctrl+x to cut selected text, # ctrl+v to paste, and ctrl+/ to select all # count words in a text and show the first ten items # by decreasing frequency import Tkinter as tk import os, glob import
Leave a comment:
-
try to browsing directory using TKinter but give error please help
I integrat program to be GUI using Tkinter I try browser direction
as you can see
...Code:# a look at the Tkinter Text widget # use ctrl+c to copy, ctrl+x to cut selected text, # ctrl+v to paste, and ctrl+/ to select all # count words in a text and show the first ten items # by decreasing frequency import Tkinter as tk import os, glob import sys
-
alivip replied to how to ingrate my code to read txt file in dirctory(folder)and subdirectory? PLZ helpin Pythonthank you very much M.r jlm699 it is work fine now
I integrat program to be GUI using Tkinter and insted search in curent direction I try to be from browser
as you can see
...Code:# a look at the Tkinter Text widget # use ctrl+c to copy, ctrl+x to cut selected text, # ctrl+v to paste, and ctrl+/ to select all # count words in a text and show the first ten items # by decreasing
Leave a comment:
-
How to brows and select a directory of file by using python TKinter
How to brows and select a directory of file by using python TKinter
like brows to find attachment in email
but I can select not only file but whole directory
any help -
alivip replied to how to ingrate my code to read txt file in dirctory(folder)and subdirectory? PLZ helpin Pythonrealy I aprechat your trying to help
but unfortionatly that is no wat I ment
I meat is read all files in directory compin all words in all files and put them in new file then find freqancy of each word in taht new fileLeave a comment:
-
alivip replied to how to ingrate my code to read txt file in dirctory(folder)and subdirectory? PLZ helpin Pythonthanx alot
but it is actualy read all file but print frequancy of only one of them
not print frequancy of word in all file which I wontLeave a comment:
-
alivip replied to how to ingrate my code to read txt file in dirctory(folder)and subdirectory? PLZ helpin Pythonthanx M.r jlm699 your reply was helpfull
but it does not match what I wont exactly
modifyig code is
...Code:# count words in a text and show the first ten items # by decreasing frequency # sample text for testing import sys import string import re import os.path for root, dirs, files in os.walk(os.getcwd()): print 'Looking into %s' %
Leave a comment:
-
alivip replied to how to ingrate my code to read txt file in dirctory(folder)and subdirectory? PLZ helpin PythonI mean example of parent dirctory (folder) is cars and example of subdirectory (folder) is (BMW,Honda,Toyo ta) so I wont to trace directory and all subdirctory
to find most frequant word in all text files (together) under specific folder
and I did not understand what your code meanLeave a comment:
-
alivip started a topic how to ingrate my code to read txt file in dirctory(folder)and subdirectory? PLZ helpin Pythonhow to ingrate my code to read txt file in dirctory(folder)and subdirectory? PLZ help
how to ingrate my code to read text in in parent folder contain sub folders and files for example folder name is cars and sub file is Toyota,Honda and BMW and Toyota contain file name Camry and file name corolla, file name Honda contain folder accord and BMW contain file name X5
Is there way to enter name of parent folder(cars) and search in all sub folder(Toyota,H onda and BMW) and files ?
please help ASAP
... -
alivip started a topic How to read from parent directory(folder) files AND how to read non enlish NEED HELPin PythonHow to read from parent directory(folder) files AND how to read non enlish NEED HELP
Is python provide search in parent folder contain sub folders and files
for example folder name is cars and sub file is Toyota,Honda and BMW and Toyota contain file name camry and file name corola, file name honda contain folder accord and BMW contain file name X5
Is there way to enter name of parent folder(cars) and search in all sub folder(Toyota,H onda and BMW) and files ?
how can I intgreat cod to be user interface...
No activity results to display
Show More
Leave a comment: