mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-05 19:23:13 +03:00
ae9779dd7f
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@3369 1f5c12ca-751b-0410-a591-d2e778427230
19 lines
351 B
C++
19 lines
351 B
C++
#pragma once
|
|
/*
|
|
* score.h
|
|
* extract
|
|
*
|
|
* Created by Hieu Hoang on 28/07/2010.
|
|
* Copyright 2010 __MyCompanyName__. All rights reserved.
|
|
*
|
|
*/
|
|
#include <string>
|
|
|
|
|
|
inline bool isNonTerminal( std::string &word )
|
|
{
|
|
return (word.length()>=3 &&
|
|
word.substr(0,1).compare("[") == 0 &&
|
|
word.substr(word.length()-1,1).compare("]") == 0);
|
|
}
|