The invention discloses a neural 
machine translation method based on a user dictionary, and the method comprises the steps: 
crawling mass data from a network through a 
web crawler technology, and obtaining a bilingual word pair from a corpus through an extraction technology to construct the user dictionary; Using a user dictionary to perform dictionalization on the training corpus, extracting thetraining corpus, and mixing the extracted training corpus with the original corpus to serve as input of neural 
network model training; Performing consistency detection on the user dictionary placeholders contained in the 
sentence pairs; 
Processing the training data by using a user dictionary, inputting the training data into a neural 
network model, and starting to 
train the model until the model converges; And inputting a 
sentence containing the user dictionary, obtaining dictionary information to replace the placeholder, and translating at the same time to obtain a high-precision translated text matched with the information in the user dictionary. During translation, the high-precision requirements of different users on 
noun phrases and named entities are well met, and the user-defined dictionary 
library is added according to the requirements and translation habits of the users, so that the high-quality requirements of the different users on translated texts are met.