Space separate combined words

Discussion in 'Perl Misc' started by Andreas.Burman@gmail.com, Jan 12, 2007.

  1. Guest

    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
    , Jan 12, 2007
    #1
    1. Advertising

  2. Bo Lindbergh Guest

    In article <>,
    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
    Bo Lindbergh, Jan 12, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. EvgueniB
    Replies:
    1
    Views:
    622
    Anthony Borla
    Dec 15, 2003
  2. Shuo Xiang

    Stack space, global space, heap space

    Shuo Xiang, Jul 9, 2003, in forum: C Programming
    Replies:
    10
    Views:
    2,884
    Bryan Bullard
    Jul 11, 2003
  3. Christian Seberino
    Replies:
    21
    Views:
    1,649
    Stephen Horne
    Oct 27, 2003
  4. Ian Bicking
    Replies:
    2
    Views:
    1,006
    Steve Lamb
    Oct 23, 2003
  5. Ian Bicking
    Replies:
    2
    Views:
    717
    Michael Hudson
    Oct 24, 2003
Loading...

Share This Page