Revision 48

Date:
2010/11/15 19:58:04
Author:
gdshaw@RISCID.ORG
Revision Log:
Modified parser to ignore word counts in lexicon files.
Files:

Legend:

 
Added
 
Removed
 
Modified
  • trunk/parser/lexicon.cc

     
    79 79 }
    80 80 for (size_t i=0;i!=words.size();++i)
    81 81 {
    82 _words[words[i]]|=tagsets[i];
    82 std::string word=words[i];
    83 std::string::size_type f=word.find('(');
    84 if (f!=std::string::npos)
    85 {
    86 word.erase(f);
    87 }
    88 _words[word]|=tagsets[i];
    83 89 }
    84 90 }
    85 91 }