Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Space separate combined words

Reply
Thread Tools

Space separate combined words

 
 
Andreas.Burman@gmail.com
Guest
Posts: n/a
 
      01-12-2007
Hi

I have a file congaing a list of combined words i.e 'carequipment',
'fishfood', 'thelittlemermaid'. I need an idea on how to add a space
between each "real" word and save it as a new file. In the case when
the combined word can be split in more than one way I guess matching
the largest one would be fine.

The file I want to run this on is rather huge over 250000 combined
words so I would appreciate if the solution also is efficient...

/Andreas

 
Reply With Quote
 
 
 
 
Bo Lindbergh
Guest
Posts: n/a
 
      01-12-2007
In article <. com>,
wrote:
> I have a file congaing a list of combined words i.e 'carequipment',
> 'fishfood', 'thelittlemermaid'. I need an idea on how to add a space
> between each "real" word and save it as a new file.


Trying to correct some Swenglish, eh?

It sounds like a trie loaded with a dictionary of real words would
be useful here. There are probably several trie classes available
from CPAN.


/Bo Lindbergh
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use several separate classes (separate files) to be executed in one class (another file) EvgueniB Java 1 12-15-2003 01:18 AM
Why Python style guide (PEP-8) says 4 space indents instead of 8 space??? 8 space indents ever ok?? Christian Seberino Python 21 10-27-2003 04:20 PM
Re: Why Python style guide (PEP-8) says 4 space indents instead of8 space??? 8 space indents ever ok?? Ian Bicking Python 2 10-24-2003 11:15 AM
Re: Why Python style guide (PEP-8) says 4 space indents instead of8 space??? 8 space indents ever ok?? Ian Bicking Python 2 10-23-2003 07:07 AM
Stack space, global space, heap space Shuo Xiang C Programming 10 07-11-2003 07:30 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57