How can I convert MLMultiArray to words and words to MLMultiArray during prediction with MLModel file

I have a MLModel which is of type neural network. It accepts the input as MLMultiArray 1x3 and outputs the MLMultiArray. This is for the words prediction based on a single or set of words. Eg: I passed say three words and it predicted some words. I have seen the output in Jupiter notebook. But here in Xcode how can I convert a word or set of words first to a mlmultiarray and pass it to the predict function and then the output which is again a multiarray to the readable words. I have gone through all the examples but they are for the images. Any help will be appreciated