Text this: Brain-inspired global-local learning incorporated with neuromorphic computing