Socket
Socket
Sign inDemoInstall

@microsoft/recognizers-text

Package Overview
Dependencies
0
Maintainers
2
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

4

compiled/culture.js

@@ -17,2 +17,3 @@ "use strict";

Culture.French = "fr-fr";
Culture.Japanese = "ja-jp";
Culture.supportedCultures = [

@@ -23,3 +24,4 @@ new Culture("English", Culture.English),

new Culture("Portuguese", Culture.Portuguese),
new Culture("French", Culture.French)
new Culture("French", Culture.French),
new Culture("Japanese", Culture.Japanese)
];

@@ -26,0 +28,0 @@ exports.Culture = Culture;

@@ -55,3 +55,3 @@ "use strict";

initializeModels(targetCulture, options) {
for (let key in this.modelFactories) {
this.modelFactories.forEach((value, key) => {
let modelFactoryKey = ModelFactoryKey.fromString(key);

@@ -61,3 +61,3 @@ if (utilities_1.StringUtility.isNullOrEmpty(targetCulture) || modelFactoryKey.culture === targetCulture) {

}
}
});
}

@@ -64,0 +64,0 @@ generateKey(modelTypeName, culture) {

@@ -7,2 +7,3 @@ export declare class Culture {

static readonly French: string;
static readonly Japanese: string;
static readonly supportedCultures: Array<Culture>;

@@ -9,0 +10,0 @@ readonly cultureName: string;

{
"name": "@microsoft/recognizers-text",
"version": "1.0.0",
"description": "recognizers-text README",
"version": "1.0.1",
"description": "recognizers-text provides base classes for robust recognition and resolution of text entities.",
"author": "Microsoft Corp.",

@@ -6,0 +6,0 @@ "license": "MIT",

@@ -5,2 +5,2 @@ # Microsoft.Recognizers.Text for JavaScript

Please check the [main README](https://github.com/Microsoft/Recognizers-Text/tree/master/JavaScript) for more details.
Please check the [main README](https://github.com/Microsoft/Recognizers-Text/tree/master/JavaScript/packages/recognizers-text-suite) for more details.

@@ -8,2 +8,3 @@ export class Culture {

static readonly French: string = "fr-fr"
static readonly Japanese: string = "ja-jp"

@@ -15,3 +16,4 @@ static readonly supportedCultures: Array<Culture> = [

new Culture("Portuguese", Culture.Portuguese),
new Culture("French", Culture.French)
new Culture("French", Culture.French),
new Culture("Japanese", Culture.Japanese)
]

@@ -18,0 +20,0 @@

@@ -82,3 +82,3 @@ import { Culture } from "./culture";

initializeModels(targetCulture: string, options: TModelOptions) {
for (let key in this.modelFactories) {
this.modelFactories.forEach((value, key) => {
let modelFactoryKey = ModelFactoryKey.fromString<TModelOptions>(key);

@@ -88,3 +88,3 @@ if (StringUtility.isNullOrEmpty(targetCulture) || modelFactoryKey.culture === targetCulture) {

}
}
});
}

@@ -91,0 +91,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc