It's on the main line out of London down to the Bristol and the South West. Otherwise you'd need to change somewhere, I guess maybe Reading or Bristol. The latter is only about 15 minutes from Bath....