void pybind_weight(py::module& m) {
  {
    using PyClass = fst::FloatWeight;
    py::class_<PyClass>(m, "FloatWeight")
        .def(py::init<>())
        .def(py::init<float>(), py::arg("f"))
        .def(py::init<const PyClass&>(), py::arg("weight"))
        .def("Value", &PyClass::Value, py::return_value_policy::reference)
        .def("Hash", &PyClass::Hash)
        .def("__eq__",