gatelfpytorchjson.ngrammodule module

class gatelfpytorchjson.ngrammodule.NgramModule(embeddingsmodule, method=’lstm’)[source]

Bases: torch.nn.modules.module.Module

forward(batchofsequences)[source]
forward_method_cnn(batchofsequences)[source]
forward_method_lstm(batchofsequences)[source]
init_method_cnn()[source]
init_method_lstm()[source]