Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

string manipulation help need

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
hi everyone,
i have a program that searches a file for a string. i need to be able to implement functionality to this progam so that it can find alike strings. for example when i search for running, i want run and all of it's variants such as runner to also be displayed, i have thought about just storing an array of possible stems and searching for them aswell as the original string, however this isn't a good solution as i need to be able to stem strings that aren't always familiar to me. i have included my search method code, i search a file by first reading it into a string and then spliting this string into other strings using tags i have used to format the file; title, abstract, body, keyword and index. i am then searching each of these strings for a target string using the indexof(). does anyone have any idea how i will be able to implement string stemming functionality to this?

 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Please don't post duplicate topics. We've already got a discussion going about this here. I'm closing this thread.
    Bookmark Topic Watch Topic
  • New Topic