298 typedef ::int64 int64;
299 typedef ::uint64 uint64;
301 typedef ::uint32 uint32;
305 for(
int i = 0;
i < 2;
i++) {
306 bool invert = (
i % 2);
307 TestConvert<TropicalWeight, int32>(invert);
308 TestConvertPair<LatticeWeight, int32>(invert);
309 TestConvertPair<LatticeWeight, size_t>(invert);
310 TestConvertPair<LexicographicWeight<TropicalWeight, TropicalWeight>,
size_t>(invert);
311 TestScalePair<LatticeWeight, int32>(invert);
312 TestScalePair<LatticeWeight, size_t>(invert);
313 TestScalePair<LexicographicWeight<TropicalWeight, TropicalWeight>,
size_t>(invert);
318 TestShortestPath<LatticeWeight, int32>();
319 TestConvert2<int32>();
320 for(
int i = 0;
i < 2;
i++) {
321 bool invert = (
i % 2);
322 TestConvertPair<LatticeWeight, int32>(invert);
323 TestConvertPair<LatticeWeight, size_t>(invert);
324 TestConvertPair<LexicographicWeight<TropicalWeight, TropicalWeight>,
size_t>(invert);
325 TestScalePair<LatticeWeight, int32>(invert);
326 TestScalePair<LatticeWeight, size_t>(invert);
327 TestScalePair<LexicographicWeight<TropicalWeight, TropicalWeight>,
size_t>(invert);
330 std::cout <<
"Tests succeeded\n";
For an extended explanation of the framework of which grammar-fsts are a part, please see Support for...
LatticeWeightTpl< BaseFloat > LatticeWeight