Python NGram function on Vantage not working

Analytics
Highlighted
Teradata Employee

Python NGram function on Vantage not working

I'm exploring the python Vantage MLE functions ... one of the functions I just tried, NGram with the initialization as shown in the documentation:

# Create Tokenized Training Document Set
ngrams_out = NGrams(data=tfidf_train,
text_column='content',
delimiter = " ",
grams = "1",
overlapping = False,
punctuation = "\\[.,?\\!\\]",
reset = "\\[.,?\\!\\]",
to_lower_case=True,
total_gram_count=True,
accumulate="docid")

 

Gave the following error:

OperationalError: [Version 16.20.0.41] [Session 27566] [Teradata Database] [Error 3707] Syntax error, expected something like ';' between the word 'NGrams' and '('.
 at gosqldriver/teradatasql.(*teradataConnection).formatDatabaseError TeradataConnection.go:1070
 at gosqldriver/teradatasql.(*teradataConnection).makeChainedDatabaseError TeradataConnection.go:1086
 at gosqldriver/teradatasql.(*teradataConnection).processErrorParcel TeradataConnection.go:1125
 at gosqldriver/teradatasql.(*TeradataRows).processResponseBundle TeradataRows.go:1157
 at gosqldriver/teradatasql.newTeradataRows TeradataRows.go:283
 at gosqldriver/teradatasql.(*teradataStatement).QueryContext TeradataStatement.go:122
 at gosqldriver/teradatasql.(*teradataConnection).QueryContext TeradataConnection.go:1749
 at database/sql.ctxDriverQuery ctxutil.go:48
 at database/sql.(*DB).queryDC.func1 sql.go:1464
 at database/sql.withLock sql.go:3032
 at database/sql.(*DB).queryDC sql.go:1459
 at database/sql.(*Conn).QueryContext sql.go:1701
 at main.goCreateRows goside.go:445
 at main._cgoexpwrap_2bb4a684d4df_goCreateRows _cgo_gotypes.go:214
 at runtime.call64 asm_amd64.s:574
 at runtime.cgocallbackg1 cgocall.go:316
 at runtime.cgocallbackg cgocall.go:194
 at runtime.cgocallback_gofunc asm_amd64.s:826
 at runtime.goexit asm_amd64.s:2361