howellyukpmg / termination_policy_google / 1.0.1
termination_policy_google
Royalty Free
Termination Policy Implemented in Google Cloud ML NLP. Input format: {"document": "input document"}.
No Tags
Language
Python 3.x - Beta
Metrics
API Calls - 68
Avg call duration -
N/A
Permissions
The Algorithm Platform License is the set of terms that are stated in the Software License section of the Algorithmia Application Developer and API License Agreement. It is intended to allow users to reserve as many rights as possible without limiting Algorithmia's ability to run it as a service.
Learn More
This is necessary for algorithms that rely on external services,
however it also implies that this algorithm is able to send your
input data outside of the Algorithmia platform.
Run an Example
Input
Output
{
"result": [
{
"confidenc_score": 0.752,
"prediction": "termination_policy",
"text": "The Government may terminate this lease in whole or in part effective at any time after the January 31, 2019 of this lease by giving at least 120 days' prior notice in writing to the Lessor. No rental shall accrue after the effective date of termination. Said notice shall be computed commencing with the day after the date of mailing."
}
]
}
Install and Use
Install
Install the Algorithmia CLI client by running:
curl -sSLf https://algorithmia.com/install.sh | sh
Then authenticate by running:
$ algo auth
# When prompted for api endpoint, hit enter
# When prompted for API key, enter your key: YOUR_API_KEY
Use
algo run howellyukpmg/termination_policy_google/1.0.1 -d '{"document": "The Government may terminate this lease in whole or in part effective at any time after the January 31, 2019 of this lease by giving at least 120 days' prior notice in writing to the Lessor. No rental shall accrue after the effective date of termination. Said notice shall be computed commencing with the day after the date of mailing."}
' --timeout 300
This algorithm's sample input contains a
'
character. This can be used to inject malicious code when running commands
(e.g. "'; sudo rm -rf / ;"). Use with caution.