Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 12 results for
amgen
- Page 1
Amgen One Biotech Stock With Long Legs
Community Center
16 Years Ago
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
16 Years Ago
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
16 Years Ago
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
14 Years Ago
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
14 Years Ago
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
14 Years Ago
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
14 Years Ago
by richieking
And how do you intend to work with this data format?
Re: Displaying the original text in a string
Programming
Software Development
14 Years Ago
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
14 Years Ago
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
14 Years Ago
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
14 Years Ago
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
14 Years Ago
by TrustyTony
Is this marked solved?
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC