No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
10 Posted Topics
Hi folks. I'm getting back into learning Python after a few months off, so I'm still a newbie, hehe. I'm using the free online book Dive Into Python. I ran the first program and it worked just fine, but it returned the output in the opposite order of the one … | |
How do I test a byte string in Python? I want to manually convert (no libraries or functions) a UTF-8 string into UTF-16. My basic solution is to reading from the stream some number of UTF-8 bytes, convert them into codepoints, then convert those codepoints into UTF-16 bytes. I want … | |
Re: I suggest you take a look at The Natural Language Toolkit's Pyhon book. It's an excellent newbie intro to Python. here's the counter they demonstrate: [code=Python] phrase = 'colorless green ideas sleep furiously' count = {} for letter in phrase: if letter not in count: count[letter] = 0 count[letter] += … | |
This is a follow up to my solved thread a few days ago about extracting parts of a RegEx search in a web scraping app. Now, I have a script that includes 4 RegEx searches that each work individually. Now I want to compile all 4 into a single search … | |
I'm trying to write my first web scraper with Python using simple regular expressions to match the info I want to extract (I realize BeautifulSoup is available, but I'm not ready to use that yet, so I want to figure out how to use reg ex first) . I want … | |
I want to iterate through the rows in two csv files and test values. For every row in file 1 that has the same value in Cell A as a row in file 2, I want to check to see if the file 2 value in Cell C is larger. … | |
I'm trying to modify a find/replace script that I previously got help with here on Daniweb. The script below iterates through a file A and makes replacements defined in a csv file B. My original goal was to change any line in file A containing a search string (in whole … | |
I have a file with a long list of English verbs and I have a set of search strings; now I want to search through the verbs to find any verb which contains any of the strings as a substring. For example, the verbs "forgotten" and "negotiate" both contain the … | |
I'm trying to automate a series of find/replace actions. I have an input file containing a large list of stemmed verb forms like this: apolog apologis becam apologis apologis apologis apologis becom becom aris arisen arisen I want to change every "apologis" to "apolog", every "arisen" to "aris" and so … | |
I'm a linguist (Python newbie) trying to use Python to help me with some simple NLP processing. I have extracted verb + preposition + VBG triples from the British National Corpus, so I have large csv files containing stuff like this: plan,on,selling criticised,for,getting opened,after,receiving were,in,identifying visited,before,returning recruited,from,including attended,by,including given,by,joining ... … |
The End.