update text model loading code to use InvariantCulture when converting strings to float