Models¶
deepke.attribution_extraction.standard.models.BasicModule module¶
deepke.attribution_extraction.standard.models.BiLSTM module¶
- class deepke.attribution_extraction.standard.models.BiLSTM.BiLSTM(cfg)[source]¶
Bases:
deepke.attribution_extraction.standard.models.BasicModule.BasicModule
- forward(x)[source]¶
Defines the computation performed at every call.
Should be overridden by all subclasses.
Note
Although the recipe for forward pass needs to be defined within this function, one should call the
Module
instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.
deepke.attribution_extraction.standard.models.Capsule module¶
- class deepke.attribution_extraction.standard.models.Capsule.Capsule(cfg)[source]¶
Bases:
deepke.attribution_extraction.standard.models.BasicModule.BasicModule
- forward(x)[source]¶
Defines the computation performed at every call.
Should be overridden by all subclasses.
Note
Although the recipe for forward pass needs to be defined within this function, one should call the
Module
instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.
deepke.attribution_extraction.standard.models.GCN module¶
- class deepke.attribution_extraction.standard.models.GCN.GCN(cfg)[source]¶
Bases:
deepke.attribution_extraction.standard.models.BasicModule.BasicModule
- forward(x)[source]¶
Defines the computation performed at every call.
Should be overridden by all subclasses.
Note
Although the recipe for forward pass needs to be defined within this function, one should call the
Module
instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.
deepke.attribution_extraction.standard.models.LM module¶
- class deepke.attribution_extraction.standard.models.LM.LM(cfg)[source]¶
Bases:
deepke.attribution_extraction.standard.models.BasicModule.BasicModule
- forward(x)[source]¶
Defines the computation performed at every call.
Should be overridden by all subclasses.
Note
Although the recipe for forward pass needs to be defined within this function, one should call the
Module
instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.
deepke.attribution_extraction.standard.models.PCNN module¶
- class deepke.attribution_extraction.standard.models.PCNN.PCNN(cfg)[source]¶
Bases:
deepke.attribution_extraction.standard.models.BasicModule.BasicModule
- forward(x)[source]¶
Defines the computation performed at every call.
Should be overridden by all subclasses.
Note
Although the recipe for forward pass needs to be defined within this function, one should call the
Module
instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.
deepke.attribution_extraction.standard.models.Transformer module¶
- class deepke.attribution_extraction.standard.models.Transformer.Transformer(cfg)[source]¶
Bases:
deepke.attribution_extraction.standard.models.BasicModule.BasicModule
- forward(x)[source]¶
Defines the computation performed at every call.
Should be overridden by all subclasses.
Note
Although the recipe for forward pass needs to be defined within this function, one should call the
Module
instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.