<p dir="ltr">Hello,<br>
Yes James, will load a required dictionary according to the requirements of the program. I have also structured the program accordingly so it shouldn't be a problem :)<br>
Also I did not mean a different class for every exception. Im using an unordered_map to map the word against its dictionary entry for which I have created a DictEntry class. It stores the word along with pointing out whether it is an exception or not. Should work well right?<br>
Also once I'm done, how can I have one of you review the code and help me proceed? <br>
Thanks.</p>
<div class="gmail_quote">On Feb 15, 2015 10:35 PM, "James Aylett" <<a href="mailto:james-xapian@tartarus.org">james-xapian@tartarus.org</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 15 Feb 2015, at 07:04, Richhiey Thomas <<a href="mailto:richhiey.thomas@gmail.com">richhiey.thomas@gmail.com</a>> wrote:<br>
<br>
> Since [Krovetz] is a dictionary based stemmer, im having problems on deciding how to create the dictionary.<br>
<br>
Richhiey — I think I recommended that you load any dictionaries you need from a file, which could be specified when constructing the stemmer. That separates the need to create the dictionary from implementing the feature, although we’ll have to provide some initial dictionary eventually.<br>
<br>
How you then structure that in your code as you load it from file and later use it is entirely up to you. If it’s just a list of words that should be treated specially, having a class to represent each word feels like overkill — you can probably do it with something like an STL container of a base_string of some sort (std::wstring? I haven’t done much Unicode in C++ work, so others may want to jump in and correct me here).<br>
<br>
J<br>
<br>
--<br>
James Aylett, occasional trouble-maker<br>
<a href="http://xapian.org" target="_blank">xapian.org</a><br>
<br>
<br>
_______________________________________________<br>
Xapian-devel mailing list<br>
<a href="mailto:Xapian-devel@lists.xapian.org">Xapian-devel@lists.xapian.org</a><br>
<a href="http://lists.xapian.org/mailman/listinfo/xapian-devel" target="_blank">http://lists.xapian.org/mailman/listinfo/xapian-devel</a><br>
</blockquote></div>