resources.wrappers.FileJsonPyTorch.gate-lf-pytorch-json.docs.pythondoc.gatelfpytorchjson.LayerCNN.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of learningframework Show documentation
Show all versions of learningframework Show documentation
A GATE plugin that provides many different machine learning
algorithms for a wide range of NLP-related machine learning tasks like
text classification, tagging, or chunking.
gatelfpytorchjson.LayerCNN module — GATE LF Pytorch Wrapper (gatelfpytorch) documentation
gatelfpytorchjson.LayerCNN module¶
-
class
gatelfpytorchjson.LayerCNN.
Concat
(dim=-1)[source]¶
Bases: torch.nn.modules.module.Module
Simple module that will concatenate a list of inputs across a dimension
-
class
gatelfpytorchjson.LayerCNN.
LayerCNN
(emb_dims, config={}, **kwargs)[source]¶
Bases: gatelfpytorchjson.CustomModule.CustomModule
LayerCNN handles a single input of shape (batchsize, maxseqlen, embdims)
and creates everything to get a final output of hidden units
(including batch normalization, dropout and non-linearity)
The number of output units is in self.dim_outputs after initialisation.
-
class
gatelfpytorchjson.LayerCNN.
ListModule
(modulelist)[source]¶
Bases: torch.nn.modules.module.Module
Simple module that runs the same input through all modules in a modulelist
and returns a list of outputs