![]() ![]() tokens TrueĬlears a param from the param map if it has been explicitly set.Ĭreates a copy of this instance with the same uid and some extra params.Įxplains a single param and returns its name, doc, and optional default value and user-supplied value in a string. ![]() load ( tokenizerPath ) > loadedTokenizer. save ( tokenizerPath ) > loadedTokenizer = Tokenizer. > tokenizerPath = temp_path + "/tokenizer" > tokenizer. TypeError: Method setParams forces keyword arguments. setParams ( "text" ) Traceback (most recent call last). head () Row(text='a b c', tokens=) > # Must use keyword arguments to specify params. head () Row(text='a b c', words=) > tokenizer. head () Row(text='a b c', tokens=) > # Temporarily modify a parameter. head () Row(text='a b c', words=) > # Change a parameter. createDataFrame (, ) > tokenizer = Tokenizer ( outputCol = "words" ) > tokenizer.
0 Comments
Leave a Reply. |