Description
A data sources that reads from text lines.
Parameters
Name | Description | Type | Required? | Default Value |
---|---|---|---|---|
filePath | File path | String | ✓ | |
ignoreFirstLine | Whether to ignore first line of csv file. | Boolean | false | |
textCol | Text Column Name | String | “text” |
Script Example
Code
URL = "https://alink-release.oss-cn-beijing.aliyuncs.com/data-files/iris.csv"
data = TextSourceBatchOp().setFilePath(URL).setTextCol("text")
data.print()