Socket
Socket
Sign inDemoInstall

@microsoft/recognizers-text

Package Overview
Dependencies
Maintainers
2
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@microsoft/recognizers-text

recognizers-text README


Version published
Weekly downloads
135K
increased by18.56%
Maintainers
2
Weekly downloads
 
Created

What is @microsoft/recognizers-text?

@microsoft/recognizers-text is a library that provides robust recognition and resolution of text entities such as numbers, dates, times, currencies, and more. It is designed to help developers extract structured information from unstructured text in multiple languages.

What are @microsoft/recognizers-text's main functionalities?

Number Recognition

This feature allows you to recognize and extract numbers from text. The code sample demonstrates how to use the `recognizeNumber` function to identify numbers in a given input string.

const { recognizeNumber } = require('@microsoft/recognizers-text-number');
const input = 'I have two apples and 3 oranges.';
const results = recognizeNumber(input, 'en-us');
console.log(results);

Date and Time Recognition

This feature enables the recognition and extraction of date and time entities from text. The code sample shows how to use the `recognizeDateTime` function to identify date and time information in a given input string.

const { recognizeDateTime } = require('@microsoft/recognizers-text-date-time');
const input = 'Let's meet on July 20th at 3 PM.';
const results = recognizeDateTime(input, 'en-us');
console.log(results);

Currency Recognition

This feature allows for the recognition and extraction of currency values from text. The code sample demonstrates how to use the `recognizeCurrency` function to identify currency amounts in a given input string.

const { recognizeCurrency } = require('@microsoft/recognizers-text-number-with-unit');
const input = 'The total cost is $45.50.';
const results = recognizeCurrency(input, 'en-us');
console.log(results);

Temperature Recognition

This feature enables the recognition and extraction of temperature values from text. The code sample shows how to use the `recognizeTemperature` function to identify temperature information in a given input string.

const { recognizeTemperature } = require('@microsoft/recognizers-text-number-with-unit');
const input = 'The temperature is 30 degrees Celsius.';
const results = recognizeTemperature(input, 'en-us');
console.log(results);

Other packages similar to @microsoft/recognizers-text

Keywords

FAQs

Package last updated on 01 Feb 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc