这是我写的生成式自动摘要示例:
paragraph = ‘’’
据DigiTimes报道,在上海疫情趋缓,防疫管控开始放松后,苹果供应商广达正在逐步恢复其中国工厂的MacBook产品生产。
据供应链消息人士称,生产厂的订单拉动情况正在慢慢转强,这会提高MacBook Pro机型的供应量,并缩短苹果客户在过去几周所经历的延长交货时间。
仍有许多苹果笔记本用户在等待3月和4月订购的MacBook Pro机型到货,由于苹果的供应问题,他们的发货时间被大大推迟了。
据分析师郭明錤表示,广达是高端MacBook Pro的唯一供应商,自防疫封控依赖,MacBook Pro大部分型号交货时间增加了三到五周,
一些高端定制型号的MacBook Pro配置要到6月底到7月初才能交货。
尽管MacBook Pro的生产逐渐恢复,但供应问题预计依然影响2022年第三季度的产品销售。
苹果上周表示,防疫措施和元部件短缺将继续使其难以生产足够的产品来满足消费者的强劲需求,这最终将影响苹果6月份的收入。
‘’’
absum_rs = HanLP.abstractive_summarization(paragraph)
print(absum_rs)
运行报错:
{‘msg’: ‘私有auth不支持在线调用 : 65a0f2cfeaf65cc8ba74b988’, ‘code’: 500, ‘object’: [‘com.qdtdhl.hanlp.gateway.config.SaTokenConfigure.check(SaTokenConfigure.java:234)’, ‘com.qdtdhl.hanlp.gateway.config.SaTokenConfigure.checkHanlpV21(SaTokenConfigure.java:182)’, ‘com.qdtdhl.hanlp.gateway.config.SaTokenConfigure.access$200(SaTokenConfigure.java:61)’, ‘com.qdtdhl.hanlp.gateway.config.SaTokenConfigure$3.run(SaTokenConfigure.java:109)’, ‘cn.dev33.satoken.router.SaRouter.match(SaRouter.java:87)’, ‘com.qdtdhl.hanlp.gateway.config.SaTokenConfigure.lambda$getSaServletFilter$0(SaTokenConfigure.java:106)’, ‘cn.dev33.satoken.reactor.filter.SaReactorFilter.lambda$filter$3(SaReactorFilter.java:161)’, ‘cn.dev33.satoken.router.SaRouter.match(SaRouter.java:112)’, ‘cn.dev33.satoken.reactor.filter.SaReactorFilter.filter(SaReactorFilter.java:159)’, ‘org.springframework.web.server.handler.DefaultWebFilterChain.invokeFilter(DefaultWebFilterChain.java:127)’, ‘org.springframework.web.server.handler.DefaultWebFilterChain.lambda$filter$0(DefaultWebFilterChain.java:121)’, ‘reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:44)’, ‘reactor.core.publisher.Mono.subscribe(Mono.java:4338)’, ‘reactor.core.publisher.MonoIgnoreThen$ThenIgnoreMain.subscribeNext(MonoIgnoreThen.java:255)’, ‘reactor.core.publisher.MonoIgnoreThen.subscribe(MonoIgnoreThen.java:51)’, ‘reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:64)’, ‘reactor.netty.http.server.HttpServer$HttpServerHandle.onStateChange(HttpServer.java:915)’, ‘reactor.netty.ReactorNetty$CompositeConnectionObserver.onStateChange(ReactorNetty.java:654)’, ‘reactor.netty.transport.ServerTransport$ChildObserver.onStateChange(ServerTransport.java:478)’, ‘reactor.netty.http.server.HttpServerOperations.onInboundNext(HttpServerOperations.java:517)’, ‘reactor.netty.channel.ChannelOperationsHandler.channelRead(ChannelOperationsHandler.java:93)’, ‘io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)’, ‘io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)’, ‘io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)’, ‘reactor.netty.http.server.HttpTrafficHandler.channelRead(HttpTrafficHandler.java:208)’, ‘io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)’, ‘io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)’, ‘io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)’, ‘io.netty.channel.CombinedChannelDuplexHandler$DelegatingChannelHandlerContext.fireChannelRead(CombinedChannelDuplexHandler.java:436)’, ‘io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:324)’, ‘io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:311)’, ‘io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:432)’, ‘io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:276)’, ‘io.netty.channel.CombinedChannelDuplexHandler.channelRead(CombinedChannelDuplexHandler.java:251)’, ‘io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)’, ‘io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)’, ‘io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)’, ‘io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410)’, ‘io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)’, ‘io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)’, ‘io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919)’, ‘io.netty.channel.epoll.AbstractEpollStreamChannel$EpollStreamUnsafe.epollInReady(AbstractEpollStreamChannel.java:795)’, ‘io.netty.channel.epoll.EpollEventLoop.processReady(EpollEventLoop.java:480)’, ‘io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:378)’, ‘io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)’, ‘io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)’, ‘io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)’, ‘java.lang.Thread.run(Thread.java:748)’], ‘timestamp’: 1705376683712}
该abstractive_summarization接口是哪里获取的接口
当然是HanLPClient了:
HanLP = HanLPClient(‘https://www.hanlp.com/hanlp/v21/redirect’, auth=auth, language=‘zh’)
absum_rs = HanLP.abstractive_summarization(paragraph)
今天运行成功了:
absum_rs = HanLP.abstractive_summarization(paragraph)
print(absum_rs)
显示结果:
据DigiTimes报道,上海疫情趋缓,苹果供应商广达正在逐步恢复其中国工厂的MacBook产品生产。
是不是服务端的原因。