spacy的en_core_web_lg模型和en_core_web_trf分句结果不同

找个例句试了一下;

I BEGAN WRITING THIS BOOK shortly after the end of my presidency—after Michelle and I had boarded Air Force One for the last time and traveled west for a long-deferred break. The mood on the plane was bittersweet. Both of us were drained, physically and emotionally, not only by the labors of the previous eight years but by the unexpected results of an election in which someone diametrically opposed to everything we stood for had been chosen as my successor. Still, having run our leg of the race to completion, we took satisfaction in knowing that we’d done our very best—and that however much I’d fallen short as president, whatever projects I’d hoped but failed to accomplish, the country was in better shape now than it had been when I’d started. For a month, Michelle and I slept late, ate leisurely dinners, went for long walks, swam in the ocean, took stock, replenished our friendship, rediscovered our love, and planned for a less eventful but hopefully no less satisfying second act. And by the time I was ready to get back to work and sat down with a pen and yellow pad (I still like writing things out in longhand, finding that a computer gives even my roughest drafts too smooth a gloss and lends half-baked thoughts the mask of tidiness), I had a clear outline of the book in my head. 

en_core_web_lg的分句结果

1
I BEGAN WRITING THIS BOOK shortly after the end of my presidency—after Michelle and I had boarded Air Force One for the last time and traveled west for a long-deferred break.
2
The mood on the plane was bittersweet.
3
Both of us were drained, physically and emotionally, not only by the labors of the previous eight years but by the unexpected results of an election in which someone diametrically opposed to everything we stood for had been chosen as my successor.
4
Still, having run our leg of the race to completion, we took satisfaction in knowing that we’d done our very best—and that however much
5
I’d fallen short as president, whatever projects I’d hoped but failed to accomplish, the country was in better shape now than it had been when I’d started.
6
For a month, Michelle and I slept late, ate leisurely dinners, went for long walks, swam in the ocean, took stock, replenished our friendship, rediscovered our love, and planned for a less eventful but hopefully no less satisfying second act.
7
And by the time I was ready to get back to work and sat down with a pen and yellow pad (I still like writing things out in longhand, finding that a computer gives even my roughest drafts too smooth a gloss and lends half-baked thoughts the mask of tidiness), I had a clear outline of the book in my head.

trf 模型分句结果
1
I BEGAN WRITING THIS BOOK shortly after the end of my presidency—after Michelle and I had boarded Air Force One for the last time and traveled west for a long-deferred break.
2
The mood on the plane was bittersweet.
3
Both of us were drained, physically and emotionally, not only by the labors of the previous eight years but by the unexpected results of an election in which someone diametrically opposed to everything we stood for had been chosen as my successor.
4
Still, having run our leg of the race to completion, we took satisfaction in knowing that we’d done our very best—and that however much I’d fallen short as president, whatever projects I’d hoped but failed to accomplish, the country was in better shape now than it had been when I’d started.
5
For a month, Michelle and I slept late, ate leisurely dinners, went for long walks, swam in the ocean, took stock, replenished our friendship, rediscovered our love, and planned for a less eventful but hopefully no less satisfying second act.
6
And by the time I was ready to get back to work and sat down with a pen and yellow pad (I still like writing things out in longhand, finding that a computer gives even my roughest drafts too smooth a gloss and lends half-baked thoughts the mask of tidiness), I had a clear outline of the book in my head.

从例子来看,trf的更准确,虽然有个warning不知道怎么消。

UserWarning: User provided device_type of 'cuda', but CUDA is not available. Disabling
  warnings.warn('User provided device_type of \'cuda\', but CUDA is not available. Disabling')

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值