主权项 |
1. A method comprising:
creating, by a processing device, an initial population comprising a vector of parameters for elements of syntactic and semantic descriptions of a source sentence; using a natural language compiler (NLC) system to translate the source sentence into a resulting translation based on universal syntactic and semantic descriptions of the source sentence; generating a vector of quality ratings, wherein each quality rating in the vector of quality ratings is of a corresponding parameter in the vector of parameters; and replacing a number of parameters in the vector of parameters with adjusted parameters, wherein replacing the number of parameters comprises:
randomly selecting a first parameter from the vector of parameters and adjusting the first parameter to create a first adjusted parameter;computing a quality rating of a translation, corresponding to the first adjusted parameter;comparing the quality rating of the translation, corresponding to the first adjusted parameter to a quality rating of a translation, corresponding to the first parameter; andreplacing the first parameter with the first adjusted parameter if the quality rating of the translation, corresponding to the first adjusted parameter is better than the quality rating of the translation, corresponding to the first parameter. |