word

How to extract pictures as enhanced metafile from word documents in python?

How to extract pictures as enhanced metafile from word documents in python? Question: I want to extract in an automatic way images from a word document. The images are excel charts pasted as picture (enhanced metafile) into the worddoc. After a quick research I tried to use the following method import docx2txt as d2t def …

Total answers: 1

How can I print letters down below

How can I print letters down below Question: I don’t know how can I program this. I tried to do it but I know only opposite direction. This is what I program Asked By: ado || Source Answers: You can implement your own backwards counter with range. zip that with the original string and you …

Total answers: 2

Why does the nltk lemmatizer not work for every word in Python?

Why does the nltk lemmatizer not work for every word in Python? Question: import ntlk lemmatizer = ntlk.WordNetLemmatizer() print(lemmatizer.lemmatize("goes")) print(lemmatizer.lemmatize("transforming")) The first example will with "goes" do work. The output is: "go". The second does not work. I get the output "transforming" but should be "transform". Asked By: TheRi || Source Answers: You need to …

Total answers: 1

Word Conversion to Numbers in Dynamic way

Word Conversion to Numbers in Dynamic way Question: Dears, I’m converting words to numbers than removing vowels, it’s working fine except when word are starting with vowel the program stops working …sounds logic since the tool is removing vowel each time it encouter one of the letters from this list: {‘a’,’e’,’i’,’o’,’u’} , can we get …

Total answers: 1

Remove duplicate words in the same cell within a column in python

Remove duplicate words in the same cell within a column in python Question: i need somebody’s help, i have a column with words, i want to remove the duplicated words inside each cell what i want to get is something like this words expected car apple car good car apple good good bad well good …

Total answers: 3

reverse words in a sentence using Python?

reverse words in a sentence using Python? Question: I am trying to reverse a word in a sentence. for example: arr = [ ‘p’, ‘e’, ‘r’, ‘f’, ‘e’, ‘c’, ‘t’, ‘ ‘, ‘m’, ‘a’, ‘k’, ‘e’, ‘s’, ‘ ‘, ‘p’, ‘r’, ‘a’, ‘c’, ‘t’, ‘i’, ‘c’, ‘e’ ] should be [ ‘p’, ‘r’, ‘a’, ‘c’, …

Total answers: 4

How to count words in a string in python

How to count words in a string in python Question: I want to be able to input a word and for python to count the number of words up to that word in a previous paragraph. This is for a program to help you know how much words you can read in one minute. A …

Total answers: 2

Python: Cut off the last word of a sentence?

Python: Cut off the last word of a sentence? Question: What’s the best way to slice the last word from a block of text? I can think of Split it to a list (by spaces) and removing the last item, then reconcatenating the list. Use a regular expression to replace the last word. I’m currently …

Total answers: 10