i have a subtitle (extention:*.ass) that i can open in a text editor . There is timecode and other staff on every line and after text of subtitle begin can i automatically paste text in specific place on every line ?? i have some basic knowledge in Python and tought it can be possible to ..
I’m trying to store the entire contents of each text file to an element in a list. I’ve tried doing this using nltk but it puts every letter of the text as an element in the list which is not what I want. Is there any way of doing this using nltk or normal python ..
Does anyone have or know or can anyone find any good usable Python package for measuring the coherency of a text? Thanks a lot. Source: Python..
I’m trying to read and print the contents of a text file, but nothing shows up: coffee = open(‘coffeeInventory.txt’ , ‘r’) coffee.seek(0) line = coffee.readline() while line != ”: print(line) coffee.close() Thank you for any advice. Source: Python..
I am trying to create a utility that can extract data in csv format from a set of PDF files that contains a mixture of tables and [mult-line] text boxes. I can extract the tables fairly well into a csv file but the text boxes, containing some of the data I want, end up as ..
I have a dataset(csv) with one column containing information of email threads. each row has entire email thread (including "from", "to", "body", "salutation" etc) copied into column . Are there any standard libraries in python to preprocess email content and extract only body of email? This will help me a lot in my text analytics ..
Right now, I am making a simple game and am trying to record a high score and save it between times when the game is open. I have a file, best_score.txt that the high score is retrieved from on open and if score == best throughout the game, I want the current score to be ..
I am trying to make a game in python that is similar to Zork, and I got one working using else if statements, but to make a functional game that would take forever. so I am wondering how I could make this using an array. here is my code: answer_yes = ["Yes", "Y", "yes", "y"] ..
How to use the following code in the flask framework, because when I use the following code, always get this error "AttributeError: ‘numpy.ndarray’ object has no attribute ‘apply’" message = message.apply(lambda x: ‘ ‘.join([word for word in x.split() if len(word) > 4])) Source: Python..
I am building a program and would like the functionality that for a particular entry, as the user is typing, based on whatever is typed, auto complete suggestions are made from a list of 150 sentences. I want to achieve this using python. Source: Python..