Text this: Application of Machine Learning to Background Rejection in Very-high-energy Gamma-Ray Observation