负面实体代码
# -*- coding: utf-8 -*-
"""
@about : 负面实体服务
@time : 2020/11/24 10:19
@author : fangsh
"""
import json
import time
import torch
import torch.nn as nn
import numpy as np
from flask import Flask, request
from transformers import BertModel, BertConfig, BertTokenizer
import logging
import logging.config
logging.config.fileConfig('./config/logging.conf')
logger = logging.getLogger('file')
app = Flask(__name
负面实体代码最先出现在Python成神之路。
共有 0 条评论