What do you do for work? Community Center Geeks' Lounge by Dani I just thought it would help us get to know each other a lot better if we each just gave 1-2 sentences about what we do for work. I'll start :) For the past 24 years, I have owned and written the code for DaniWeb. For the majority of that time, I sold advertising on the site to make a living. Re: What do you do for work? Community Center Geeks' Lounge by rproffitt The events in the country I live have lit a fire under me so while I am retired my new job is: 1. Activist. 2. Calls and letters to representatives which I find with 5calls.org and the government web pages. We are living the part of the story where people will ask "**Why didn't anyone try to stop this?**" My job is now the 2 … Re: What do you do for work? Community Center Geeks' Lounge by Reverend Jim Likewise retired as of 2008. I spent two years in medical resarch followed by 29 years as an AGC/SCADA systems programmer and Windows sysadmin/dbadmin and digital plumber. Re: What do you do for work? Community Center Geeks' Lounge by MasoodDidThat I control what you see online. Digital Marketing. Re: What do you do for work? Community Center Geeks' Lounge by pritaeas Software engineer, professionally 28 years and counting. Hobbyist/enthousiast 12 years before that. Re: What do you do for work? Community Center Geeks' Lounge by SCBWV Retired early as a Dean at an R1 university. For a few years I sold specialized software I wrote. Now I do as I please, when I want, if I want. ;) Re: Example Sentences From New Vocab Programming Software Development by d5e5 …following code: [CODE] #step1: find example sentences in esutf8.txt which contain new voc items… from nvutf8.txt #step2: among those sentences find those which contain as few as… to understand irregularities going on. I use the following example sentences in esutf8.txt: 我前边要拐弯了,请注意。 车来了快跑。 请排好队上车。 带好自己的东西。 方向错了! 我给你讲一个成语故事。 感谢你对我们的关心。… count sentences from a .txt file Programming Software Development by zingwing … This file contains 91 words and four sentences! (First half of code is for counting…amp;curChar); // While loop for reading and counting sentences while(endOfFileResult != EOF) { //looks at first …\n", wordCount); printf("\nThere are %d sentences\n\n", sentenceCount); return 0; } //… Remowing white spaces + separating sentences Programming Software Development by OSiRiSsk …sentenece is characterized with sign '.' if you have sentences wchich ends with '...' then consider the last dot…c]void ParameterSPL(int argc, char *argv[]) //spl means sentences per line { unsigned long int counter = 0; unsigned… '. . . ' will be recognized as three different sentences, i guess i can make this somehow with using macros… Example Sentences From New Vocab Programming Software Development by bjoernh …following code: [CODE] #step1: find example sentences in esutf8.txt which contain new voc items from… nvutf8.txt #step2: among those sentences find those which contain as few as … to understand irregularities going on. I use the following example sentences in esutf8.txt: 我前边要拐弯了,请注意。 车来了快跑。 请排好队上车。 带好自己的东西。 方向错了! 我给你讲一个成语故事。 感谢你对我们的关心。 For… count words and print the sentences in an ascending order Programming Software Development by DJSarma … use strict; use warnings; my ($line,$inFile,$outFile,$para, $text, @sentences, @words, @length, $count, $i, $order); #defined variables $inFile = "…(/[!,?,.]/, $text); #split text into sentences for ($i=0;$i<scalar(@sentences);$i++) { @words=split(/\s+/, @sentences[$i]); #split each sentence into … rotating sentences Programming Software Development by krypton25 …: rotate.txt In ``Rotating Sentences,'' you are asked to rotate a series of input sentences 90 degrees clockwise. So instead… of displaying the input sentences from left to right and top to bottom, …your program, you will be given a maximum of 15 sentences, each not exceeding 100 characters long. Legal characters include… Re: Remowing white spaces + separating sentences Programming Software Development by OSiRiSsk … the parameter which has been entered the humber of sentences printed on the last line can be lower as…if the sentence ends with . . . count it as three sentences, because sentence can be empty so example Test ... = one sentence… Test . . . = three sentences so ive tried to change my code, to make this… Re: Example Sentences From New Vocab Programming Software Development by bjoernh … code: [CODE] #!/usr/bin/env python #step1: find example sentences in esutf8.txt which contain new voc items from nvutf8…(0) newvocab_file.close() exsentences_file.close() [/CODE] I use these example sentences: 医生说的连体人, 就是李方刚生的这个孩子。 医生放下电话。 王医生给的药太难吃。 中国有了英文热。 可是,去美国我们没有钱,再说, 我和向右是连在一只 and as new vocab 只 只 The command line then reads: ´╗┐ÕŬ… Re: count words and print the sentences in an ascending order Programming Software Development by voidyman … my $out="out"; my $line; my $text; my @sentences; my %seen; open(SOURCE,"<in") or die…>) { chomp($line); $text = $text.$line; } close(SOURCE); @sentences = split(/[!,?,.]/, $text); foreach(@sentences){ my $dummy=$_; $dummy=~s/^\s//g;##removing any… Append first 3 sentences to a file Programming Software Development by Remy the cook I have to append first 3 sentences of this sample text to a file(data.txt). So …&T in 1963.""" sentences = nltk.sent_tokenize(text) for sent in sentences: for x in range(3): with open…('{}\n'.format(sent)) But it gives the wrong result (repeats sentences). What am I doing wrong? Re: Append first 3 sentences to a file Programming Software Development by vegaseat …in 1963.""" sentences = nltk.sent_tokenize(text) pprint.pprint(sentences) # test # write the first three sentences to file num_sentences = 3 … open('aa_data.txt', 'w') as fout: for sentence in sentences[:num_sentences]: print(sentence) fout.write(sentence+'\n') Re: Remowing white spaces + separating sentences Programming Software Development by SVR … look for first non dot after dot to count sentences & add new line if(c != '.') …line { if(++counter == pom) // is there enough sentences? { putchar('\n'); // yes - new line isTrailing … Re: Remowing white spaces + separating sentences Programming Software Development by SVR …look for first non dot after dot to count sentences & add new line if(c != '.') … line { if(++counter == pom) // is there enough sentences? { putchar('\n'); // yes - new line isTrailing … Re: count words and print the sentences in an ascending order Programming Software Development by craigjh … has a few problems. 1. You are iterating through the sentences but you are storing the words and lengths in arrays… want to sort and print the results after processing all sentences. 3. It also seems that since you're only sorting… How do I parse a txt file into its sentences ? Programming Software Development by koveras vehcna … and I want to parse a .txt file into its sentences as a whole. I tried to create some regular expressions… regex that splits each paragraph into its sentences. How can I split the text into sentences ? -Also, if a sentence is long… Re: How do I parse a txt file into its sentences ? Programming Software Development by TrustyTony … it endsentence = ".?!" filein = 'd:/test/advsh12.txt' sentences = it.groupby(open(filein).read(), lambda x: any(x.endswith…for punct in endsentence)) for number,(truth, sentence) in enumerate(sentences): if truth: print number//2+1,':',previous+''.join(sentence).replace… Saving and loading sentences Programming Software Development by Jun Bryan I just need a simple program fragment that saves sentences/phrases and can load as exactly as the input. Do … --OR-- thefoodisgood goinghigh deliciouspie I will need it to store sentences in a simple manner so I'm focused on saving… sentences and loading it exactly as what the input gives. Don'… A code that transforms standard sentences into interrogative sentences Programming Software Development by chemengr05 … to create a simple code that would transform standard sentences into interrogative sentences. I’m not sure how easy or hard it… Re: random up sentences. please help me!! Programming Software Development by bang2711 now i can do the split and random the label. but i can`t put the normal orginal sentences to do compare i hav a attach file in it. lblwords is the random up sentences, label2 is where i want to drag lblwords down and put to form back the same sentences as be4 it random. parsing of text document into sentences Programming Software Development by sautap4u I AM FACING PROBLEMS WITH SEPARATING SENTENCES FROM A TEXT . FOR eg. if i separate sentence after each '.' then it won't help for Dr.xyz. it would consider them as two different sentences.. but it is not. please help if possible with a suitable code.. scoring algorithm for sentences in a text Programming Software Development by sautap4u I want to rank sentences in a text based on weights.. for example i want to extract certain important sentences from a text based on its weights(importance).. please help if possible with an executable algorithm... Re: scoring algorithm for sentences in a text Programming Software Development by sautap4u … engine in which i need to extract only the important sentences. weights will be given to words based on its frequency… in developing this scoring algorithm. [QUOTE=Clockowl;844520][code]read sentences add weights[/code] ? ;) Post a bit more information if you… Re: scoring algorithm for sentences in a text Programming Software Development by nucleon … sentence weight to the sum of its word weights Sort sentences by sentence weights. Store/Display top N… Match Sentences with Missing Words Programming Software Development by DevourOfDarknes … enters a sentence. Now, I have a text file with sentences to match it to. So let's say the first… how could I do such a task as to match sentences when 1 or more words is not known?