Text this: Optimization of the Accelerator Control by Reinforcement Learning