- from hanlp.components.mtl.multi_task_learning import MultiTaskLearning
- from hanlp.components.mtl.tasks.constituency import CRFConstituencyParsing
- from hanlp.components.mtl.tasks.dep import BiaffineDependencyParsing
- from hanlp.components.mtl.tasks.ner.tag_ner import TaggingNamedEntityRecognition
- from hanlp.components.mtl.tasks.pos import TransformerTagging
- from hanlp.components.mtl.tasks.sdp import BiaffineSemanticDependencyParsing
- from hanlp.components.mtl.tasks.srl.bio_srl import SpanBIOSemanticRoleLabeling
- from hanlp.components.mtl.tasks.tok.tag_tok import TaggingTokenization
- from hanlp.datasets.ner.msra import MSRA_NER_TOKEN_LEVEL_SHORT_IOBES_TEST, MSRA_NER_TOKEN_LEVEL_SHORT_IOBES_DEV, \
- MSRA_NER_TOKEN_LEVEL_SHORT_IOBES_TRAIN
- from hanlp.datasets.parsing.ctb8 import CTB8_POS_TRAIN, CTB8_POS_DEV, CTB8_POS_TEST, CTB8_SD330_TEST, CTB8_SD330_DEV, \
- CTB8_SD330_TRAIN, CTB8_CWS_TRAIN, CTB8_CWS_DEV, CTB8_CWS_TEST, CTB8_BRACKET_LINE_NOEC_TEST, \
- CTB8_BRACKET_LINE_NOEC_DEV, CTB8_BRACKET_LINE_NOEC_TRAIN
- from hanlp.datasets.parsing.semeval16 import SEMEVAL2016_TEXT_TRAIN_CONLLU, SEMEVAL2016_TEXT_TEST_CONLLU, \
- SEMEVAL2016_TEXT_DEV_CONLLU
- from hanlp.datasets.srl.ontonotes5.chinese import ONTONOTES5_CONLL12_CHINESE_TEST, ONTONOTES5_CONLL12_CHINESE_DEV, \
- ONTONOTES5_CONLL12_CHINESE_TRAIN
- from hanlp.layers.embeddings.contextual_word_embedding import ContextualWordEmbedding
- from hanlp.layers.transformers.relative_transformer import RelativeTransformerEncoder
- from hanlp.utils.lang.zh.char_table import HANLP_CHAR_TABLE_JSON
- from hanlp.utils.log_util import cprint