mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-25 12:52:29 +03:00
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:
parent
32722ab5b1
commit
fc810e363e
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user