Remove conflicting definition of isNonTerminal.

This only affects configurations where inline functions become regular,
non-weak symbols, leading to link conflicts.  The extra definition was not
used anywhere.

The removed definition was probably less efficient.  However the only
functional difference was that it returned false for the empty nonterminal,
i.e. "[]".
This commit is contained in:
Jeroen Vermeulen 2015-04-22 10:43:15 +07:00
parent 32722ab5b1
commit fc810e363e

View File

@ -11,11 +11,6 @@ using namespace std;
namespace MosesTraining
{
bool isNonTerminal( const WORD &symbol )
{
return symbol.substr(0, 1) == "[" && symbol.substr(symbol.size()-1, 1) == "]";
}
WORD_ID Vocabulary::storeIfNew( const WORD& word )
{
map<WORD, WORD_ID>::iterator i = lookup.find( word );