Neural network based concatenation method of synthesis units for synthesis by rule