Source code for pyabsa.tasks.AspectPolarityClassification.models.__classic__

# -*- coding: utf-8 -*-
# file: __init__.py
# time: 02/11/2022 15:48
# author: YANG, HENG <hy345@exeter.ac.uk> (杨恒)
# github: https://github.com/yangheng95
# GScholar: https://scholar.google.com/citations?user=NPq5a_0AAAAJ&hl=en
# ResearchGate: https://www.researchgate.net/profile/Heng-Yang-17/research
# Copyright (C) 2022. All Rights Reserved.


[docs] class ClassicAPCModelList(list): from .aoa import AOA from .asgcn import ASGCN from .atae_lstm import ATAE_LSTM from .cabasc import Cabasc from .ian import IAN from .lstm import LSTM from .memnet import MemNet from .mgan import MGAN from .ram import RAM from .tc_lstm import TC_LSTM from .td_lstm import TD_LSTM from .tnet_lf import TNet_LF
[docs] AOA = AOA
[docs] ASGCN = ASGCN
[docs] ATAE_LSTM = ATAE_LSTM
[docs] Cabasc = Cabasc
[docs] IAN = IAN
[docs] LSTM = LSTM
[docs] MemNet = MemNet
[docs] MGAN = MGAN
[docs] RAM = RAM
[docs] TC_LSTM = TC_LSTM
[docs] TD_LSTM = TD_LSTM
[docs] TNet_LF = TNet_LF
def __init__(self): super(ClassicAPCModelList, self).__init__( [ self.ASGCN, self.AOA, self.ATAE_LSTM, self.Cabasc, self.IAN, self.LSTM, self.MemNet, self.MGAN, self.RAM, self.TC_LSTM, self.TD_LSTM, self.TNet_LF, ] )
[docs] class GloVeAPCModelList(ClassicAPCModelList): pass