fix baidufanyi param error (#3053)
### What problem does this PR solve? #3052 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
parent
8257eeb3f2
commit
322bafdf2a
1 changed files with 0 additions and 1 deletions
|
|
@ -36,7 +36,6 @@ class BaiduFanyiParam(ComponentParamBase):
|
|||
self.domain = 'finance'
|
||||
|
||||
def check(self):
|
||||
self.check_positive_integer(self.top_n, "Top N")
|
||||
self.check_empty(self.appid, "BaiduFanyi APPID")
|
||||
self.check_empty(self.secret_key, "BaiduFanyi Secret Key")
|
||||
self.check_valid_value(self.trans_type, "Translate type", ['translate', 'fieldtranslate'])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue