I wrapped paths with os.path.join or equivalent in many places
I changed the @dataclass definition of some parameters to use default_factory instead of default when the values were mutable (using the class SparkNLPExtractor). I did this as I got an error when installing the nlu library from johnsnowlabs.
ReadAs was not imported, so I changed to the "TEXT" in the test_context_parser.
encoding="utf8"
on theopen
statements.os.path.join
or equivalent in many places@dataclass
definition of some parameters to usedefault_factory
instead ofdefault
when the values were mutable (using the classSparkNLPExtractor
). I did this as I got an error when installing thenlu
library fromjohnsnowlabs
.ReadAs
was not imported, so I changed to the"TEXT"
in thetest_context_parser
.