File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
src/main/scala/com/johnsnowlabs/nlp Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 16
16
17
17
package com .johnsnowlabs .nlp
18
18
19
- import com .johnsnowlabs .nlp .AnnotatorType .CHUNK
20
- import org .apache .spark .ml .param .{Params , StringArrayParam }
21
- import org .apache .spark .sql .types .StructType
22
-
19
+ /**
20
+ * Trait used to create annotators with input columns of variable length.
21
+ * */
23
22
trait HasMultipleInputAnnotationCols extends HasInputAnnotationCols {
24
23
24
+ /** Annotator reference id. The Annotator type is the same for any of the input columns*/
25
25
val inputAnnotatorType : String
26
26
27
27
lazy override val inputAnnotatorTypes : Array [String ] = getInputCols.map(_ => inputAnnotatorType)
28
28
29
+ /**
30
+ * Columns that contain annotations necessary to run this annotator
31
+ * AnnotatorType is the same for all input columns in that annotator.
32
+ */
29
33
override def setInputCols (value : Array [String ]): this .type = {
30
34
set(inputCols, value)
31
35
}
You can’t perform that action at this time.
0 commit comments