sparknlp_jsl.utils.run_transpiled_code#

Module Contents#

Classes#

RunTranspiledCode

class RunTranspiledCode#

Bases: object

static build_scala_code(scala_code: str)#

Compile and execute the provided Scala code.

Parameters:

scala_code – str, the Scala code to be executed.

Returns:

‘0’ or ‘1’.

static compile_scala_code(scala_code: str)#

Compile the provided Scala code without execution.

Parameters:

scala_code – str, the Scala code to be compiled.

Returns:

‘0’ or ‘1’.