Amgen One Biotech Stock With Long Legs Community Center by Brian.oco …in the discovery and manufacture of human therapeutics." Amgen markets products in the areas of supportive cancer care… drug Enbrel, and white blood cell stimulator Neupogen. Amgen, which has a marketing alliance with Baxter International, … were happy to see that, last month, Amgen reported successful Phase 3 trial results showing that its… Amgen Ignites Stock Rally; Tech Job Layoffs Slowing? Community Center by Brian.oco … positive territory today, thanks in part to one biotechnology stalwart, Amgen, which is up three points in trading. Why? Well, the… Medical Technology Stocks A Silver Lining in "Worst Market Week Ever" Community Center by Brian.oco … follow up with some more possible medical tech plays - hello Amgen - in my next post. Then it's off to the… Displaying the original text in a string Programming Software Development by kailashbuki …, the kgrams for the above string would be [CODE]'iamge', 'amgen', 'mgeni', 'genie', ... , 'isiam', 'siamg'[/CODE] I want to display the… Re: Displaying the original text in a string Programming Software Development by loveerl I'm not sure I understand how you are getting your string to look like that. Could you tell me how that occurs? Re: Displaying the original text in a string Programming Software Development by woooee This is a simple dictionary with 'iamge' pointing to 'i am ge'. Most of the online tutorials cover dictionaries. Re: Displaying the original text in a string Programming Software Development by richieking And how do you intend to work with this data format? Re: Displaying the original text in a string Programming Software Development by TrustyTony Yes, richieking, I see that this n-gram are starting from every letter of the document, so my suggestion would be instead of wooees dict to record something like file position counter for n-gram starting positions. Would add quite a lot to space requirements though. To speed things up you would keep the original text in memory in addition to the n-… Re: Displaying the original text in a string Programming Software Development by Democles Not sure exactly what you are trying to do. You could have a dictionary or list (whatever you want to use) count the letters to each white space then later re-insert the white spaces based off the dictionary. Of course it wouldn't be a permanent fix, each sentence or paragraph would have it's own dictionary or list.Just an idea. Re: Displaying the original text in a string Programming Software Development by TrustyTony [CODE]t = "i am genie. who are you? we worked together in a hotel called xsis." n = 6 indexes = list(i for i,letter in enumerate(t) if not letter.isspace()) print 'ngram %i with spaces: %s' % (n,t[indexes[n]:indexes[n+5]]) [/CODE] Re: Displaying the original text in a string Programming Software Development by TrustyTony [CODE]t = "i am genie. who are you? we worked together in a hotel called xsis." wrap = 7 indexes = list(index for index,letter in enumerate(t+t[:wrap]) if letter.isalpha()) for k in (2,3,5): print '\n', t print '\n%igram with non-letters:' % k print ', '.join(repr((t+t[:wrap])[indexes[n]:indexes[n+k]]) for n in range(len(… Re: Displaying the original text in a string Programming Software Development by TrustyTony Is this marked solved?