@microsoft/recognizers-text-number-with-unit
Advanced tools
Comparing version 1.0.0-rc.32.0 to 1.0.0
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
2730358
50881
1