The Natural Language Processing API
Get the duration between two dates in days, hours, minutes, and seconds along with checking if they are the same.
Format a date string to another date string. For more examples on formatting, see the Sugar Date Format documentation.
The TextRazor API offers advanced natural language processing capabilities that let you analyze text, extracting entities, concepts, and categorizing content with ease. Utilizing machine learning and AI, TextRazor can break down your content into actionable data, identifying the sentiment, relationship, and structure of the text provided. It's a gold mine for developers looking to automate content analysis, enrich search capabilities, or implement AI-driven content recommendations.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
textrazor: {
type: "app",
app: "textrazor",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.textrazor.com/account/`,
headers: {
"X-TextRazor-Key": `${this.textrazor.$auth.api_key}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})