Cambridge SMT System
|
Class that provides "pattern" comparison between two const char *. The "patterns" are an abstraction of any non-terminal A-Z. So for instance, consider non_terminals A and Z. A rule with source 3_A_5 and another one with source 3_Z_5 are equivalent and need to be listed together (with any other equivalent sources). This class can be used with PosIndexCompare as it inherits from CompareTool. More...
#include <data.grammar.comparetool.hpp>
Public Member Functions | |
virtual __always_inline int | compare (const char *s1, const char *s2) |
virtual __always_inline int | ncompare (const char *s1, const char *s2, uint n) |
Class that provides "pattern" comparison between two const char *. The "patterns" are an abstraction of any non-terminal A-Z. So for instance, consider non_terminals A and Z. A rule with source 3_A_5 and another one with source 3_Z_5 are equivalent and need to be listed together (with any other equivalent sources). This class can be used with PosIndexCompare as it inherits from CompareTool.
Definition at line 93 of file data.grammar.comparetool.hpp.
|
inlinevirtual |
Reimplemented from ucam::hifst::CompareTool.
Definition at line 95 of file data.grammar.comparetool.hpp.
|
inlinevirtual |
Nothing to compare? Return zero.
Reimplemented from ucam::hifst::CompareTool.
Definition at line 112 of file data.grammar.comparetool.hpp.