Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue #680 Update python api for read and write arguments to json #681

Merged
merged 1 commit into from
Oct 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions python/zingg/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ def writeArgumentsToJSON(self, fileName):
:param fileName: The CONF parameter value of ClientOption object or file address of json file
:type fileName: String
"""
getJVM().zingg.common.client.Arguments.writeArgumentsToJSON(fileName, self.args)
getJVM().zingg.common.client.ArgumentsUtil().writeArgumentsToJSON(fileName, self.args)

def setStopWordsCutoff(self, stopWordsCutoff):
""" Method to set stopWordsCutoff parameter value
Expand All @@ -541,7 +541,7 @@ def createArgumentsFromJSON(fileName, phase):
:rtype: pointer(Arguments)
"""
obj = Arguments()
obj.args = getJVM().zingg.common.client.Arguments.createArgumentsFromJSON(fileName, phase)
obj.args = getJVM().zingg.common.client.ArgumentsUtil().createArgumentsFromJSON(fileName, phase)
return obj


Expand All @@ -555,12 +555,12 @@ def writeArgumentsToJSONString(self):
:return: The pointer containing address of the this class object
:rtype: pointer(Arguments)
"""
return getJVM().zingg.common.client.Arguments.writeArgumentstoJSONString(self.args)
return getJVM().zingg.common.client.ArgumentsUtil().writeArgumentstoJSONString(self.args)

@staticmethod
def createArgumentsFromJSONString(jsonArgs, phase):
obj = Arguments()
obj.args = getJVM().zingg.common.client.Arguments.createArgumentsFromJSONString(jsonArgs, phase)
obj.args = getJVM().zingg.common.client.ArgumentsUtil().createArgumentsFromJSONString(jsonArgs, phase)
return obj


Expand Down