com.johnsnowlabs.nlp.annotators.graph
DenseClassifierGraphFamily
Companion object DenseClassifierGraphFamily
case class DenseClassifierGraphFamily(annotator: String, resourceFolder: String, filePrefix: String, tfGraphModelName: String, buildParamsTemplate: String) extends Product with Serializable
Describes a family of pre-built dense (feature vector) classifier graphs which is embedded in the library JAR.
All the annotators which are trained through
GenericClassifierApproach
share the same TensorFlow contract (inputs, targets, outputs, loss, ... tensors), but
not the same topology. Every family keeps the graphs of one topology in its own resource
folder, so that the resolver never mixes, e.g., a logistic regression graph with a multi layer
perceptron graph.
- annotator
the annotator(s) using this family, only used for error messages
- resourceFolder
JAR resource folder holding the embedded graphs of this family
- filePrefix
file name prefix of the embedded graphs (
<prefix>_<inputDim>_<outputDim>.pb)- tfGraphModelName
sparknlp_jsl.training.tf_graphmodel name able to build this family- buildParamsTemplate
the
tf_graph.buildparameters this family has been created with, only used for error messages
- Alphabetic
- By Inheritance
- DenseClassifierGraphFamily
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
DenseClassifierGraphFamily(annotator: String, resourceFolder: String, filePrefix: String, tfGraphModelName: String, buildParamsTemplate: String)
- annotator
the annotator(s) using this family, only used for error messages
- resourceFolder
JAR resource folder holding the embedded graphs of this family
- filePrefix
file name prefix of the embedded graphs (
<prefix>_<inputDim>_<outputDim>.pb)- tfGraphModelName
sparknlp_jsl.training.tf_graphmodel name able to build this family- buildParamsTemplate
the
tf_graph.buildparameters this family has been created with, only used for error messages
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val annotator: String
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val buildParamsTemplate: String
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val filePrefix: String
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val resourceFolder: String
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- val tfGraphModelName: String
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()