Text this: A new non-parametric method to infer galaxy cluster masses from weak lensing