fix code style issues in translator model

related to #130