A simplified implement of openfst.