Skip to content

Commit f6c2a49

Browse files
committed
add scala doc
1 parent 9894443 commit f6c2a49

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/main/scala/com/johnsnowlabs/nlp/HasMultipleInputAnnotationCols.scala

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,20 @@
1616

1717
package com.johnsnowlabs.nlp
1818

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+
* */
2322
trait HasMultipleInputAnnotationCols extends HasInputAnnotationCols {
2423

24+
/** Annotator reference id. The Annotator type is the same for any of the input columns*/
2525
val inputAnnotatorType: String
2626

2727
lazy override val inputAnnotatorTypes: Array[String] = getInputCols.map(_ =>inputAnnotatorType)
2828

29+
/**
30+
* Columns that contain annotations necessary to run this annotator
31+
* AnnotatorType is the same for all input columns in that annotator.
32+
*/
2933
override def setInputCols(value: Array[String]): this.type = {
3034
set(inputCols, value)
3135
}

0 commit comments

Comments
 (0)