Skip to main content

自动重写内容SDK 英文版本

主要是调用的封装

实现自动重写内容,英文版本

示例

自动对内容筛选

from tkitAutoRewriter.api import SentenceClassification

cls=SentenceClassification(api="http://192.168.1.18:3007")

text_list="""

Leading pet insurance options examined
We’ve been around for a long time and have had the good fortune of working with some of the best and worst insurance companies around. Now that we know which ones are worthy of your attention—and your hard-earned money—we’re able to bring you our comprehensive list of the ones that are at the top of our recommended pile.

Trupanion Medical Insurance for the Life of Your Pet
trupanion insuranceOur Canadian readers might be well aware of this company since they’re one of the most popular pet insurance providers in the country, but we’re here to now spread the name of Trupanion to everyone else.

Their coverage is about as good as any other provider by covering everything from accidents to congenital illnesses, and their rates are quite fair. The real selling point, however, is the unparalleled flexibility that they offer to customers who have variable needs.

Unlike most pet insurance companies that have harsh penalties and restrictions on changing your coverage, Trupanion allows their users to adjust their monthly payments on a month-to-month basis. That means people with seasonal or unstable income can continue to stay covered, which is quite appreciated by consumers.

On top of this, rates won’t change as your pet ages. These two factors combined mean that Trupanion is one of the best long-term insurance providers since you never have to worry about being locked into a plan that can suddenly become too expensive.

The process of getting paid has never been more straightforward, either. There’s no paperwork, no filing, and no lengthy phone calls to different customer service representatives who are giving you different answers.

Thanks to the fact that Trupanion is recognized by veterinarians around North America, once you’re covered, you simply have to pay your bill at the checkout counter of your local veterinarian, and they’ll send out your insurance request right then and there.


"""

out=cls.predict_text_pet(text_list=text_list)
print(out)
# {'results': [[{'label': 'LABEL_0', 'score': 0.9998511075973511}, {'label': 'LABEL_0', 'score': 0.7677215933799744}, {'label': 'LABEL_0', 'score': 0.9998512268066406}, {'label': 'LABEL_0', 'score': 0.7677215933799744}]]}

容器镜像托管 https://gitlab.com/napoler/tkittextensummary/container_registry

Metadata

Release files for tkitAutoRewriter 0.0.0.116587663

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tkitAutoRewriter 0.0.0.116587663
File Size Uploaded
tkitAutoRewriter-0.0.0.116587663.tar.gz 7.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tkitAutoRewriter 0.0.0.116587663
File Interpreter ABI Platform
tkitAutoRewriter-0.0.0.116587663-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 14.8 kB

Release files / tkitAutoRewriter-0.0.0.116587663.tar.gz

Download URL tkitAutoRewriter-0.0.0.116587663.tar.gz
Size 7.7 kB
Tags Source
SHA-256 checksum
How to use checksums
174c7e7cc5deb38b7d135f9a296f08c7a38c61a63c843d06a9aecc3988229975
BLAKE2b-256 checksum
How to use checksums
04812788665ad285627ffaab0768eb89254dc8c36295480cde5ee3df64b56125
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Release files / tkitAutoRewriter-0.0.0.116587663-py2.py3-none-any.whl

Download URL tkitAutoRewriter-0.0.0.116587663-py2.py3-none-any.whl
Size 7.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
9286cff32223656ece52cffcff0e54e4f6814aad8bc693b736ce904e51f3fcd1
BLAKE2b-256 checksum
How to use checksums
bbf6c85fcd59759bd41515c60eae277312f64f8bf3718c2e634ca9db78dce4d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Release history Release notifications | RSS feed

This release

0.0.0.116587663 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page