Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@microsoft/recognizers-text-number-with-unit

Package Overview
Dependencies
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@microsoft/recognizers-text-number-with-unit - npm Package Compare versions

Comparing version 1.0.0-rc.32.0 to 1.0.0

24

dist/types/numberWithUnit/numberWithUnitRecognizer.d.ts

@@ -1,9 +0,17 @@

import { IModel, Recognizer } from "@microsoft/recognizers-text";
export default class NumberWithUnitRecognizer extends Recognizer {
static readonly instance: NumberWithUnitRecognizer;
private constructor();
getCurrencyModel(culture: string, fallbackToDefaultCulture?: boolean): IModel;
getTemperatureModel(culture: string, fallbackToDefaultCulture?: boolean): IModel;
getDimensionModel(culture: string, fallbackToDefaultCulture?: boolean): IModel;
getAgeModel(culture: string, fallbackToDefaultCulture?: boolean): IModel;
import { IModel, ModelResult, Recognizer } from "@microsoft/recognizers-text";
export declare enum NumberWithUnitOptions {
None = 0,
}
export declare function recognizeCurrency(query: string, culture: string, options?: NumberWithUnitOptions, fallbackToDefaultCulture?: boolean): Array<ModelResult>;
export declare function recognizeTemperature(query: string, culture: string, options?: NumberWithUnitOptions, fallbackToDefaultCulture?: boolean): Array<ModelResult>;
export declare function recognizeDimension(query: string, culture: string, options?: NumberWithUnitOptions, fallbackToDefaultCulture?: boolean): Array<ModelResult>;
export declare function recognizeAge(query: string, culture: string, options?: NumberWithUnitOptions, fallbackToDefaultCulture?: boolean): Array<ModelResult>;
export default class NumberWithUnitRecognizer extends Recognizer<NumberWithUnitOptions> {
constructor(culture: string, options?: NumberWithUnitOptions, lazyInitialization?: boolean);
protected InitializeConfiguration(): void;
protected IsValidOptions(options: number): boolean;
getCurrencyModel(culture?: string, fallbackToDefaultCulture?: boolean): IModel;
getTemperatureModel(culture?: string, fallbackToDefaultCulture?: boolean): IModel;
getDimensionModel(culture?: string, fallbackToDefaultCulture?: boolean): IModel;
getAgeModel(culture?: string, fallbackToDefaultCulture?: boolean): IModel;
}

@@ -1,2 +0,2 @@

export { default as NumberWithUnitRecognizer } from "./numberWithUnit/numberWithUnitRecognizer";
export { default as NumberWithUnitRecognizer, NumberWithUnitOptions, recognizeTemperature, recognizeDimension, recognizeCurrency, recognizeAge } from "./numberWithUnit/numberWithUnitRecognizer";
export { Culture, CultureInfo } from "@microsoft/recognizers-text-number";

@@ -3,0 +3,0 @@ export { Constants } from "./numberWithUnit/constants";

{
"name": "@microsoft/recognizers-text-number-with-unit",
"version": "1.0.0-rc.32.0",
"version": "1.0.0",
"description": "recognizers-text-number-with-unit provides robust recognition and resolution of numbers with units expressed in multiple languages. Support for English, Spanish, Chinese and Portuguese.",

@@ -37,5 +37,5 @@ "author": "Microsoft Corp.",

"lodash.max": "^4.0.1",
"@microsoft/recognizers-text": "^1.0.0-rc.32.0",
"@microsoft/recognizers-text-number": "^1.0.0-rc.32.0"
"@microsoft/recognizers-text": "^1.0.0",
"@microsoft/recognizers-text-number": "^1.0.0"
}
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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