-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Releasing version 51.2.0
- Loading branch information
Showing
90 changed files
with
5,450 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
Ailanguage/models/BatchDetectLanguagePiiEntitiesDetails.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/* | ||
* Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. | ||
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. | ||
*/ | ||
|
||
// NOTE: Code generated by OracleSDKGenerator. | ||
// DO NOT EDIT this file manually. | ||
|
||
|
||
using System.ComponentModel.DataAnnotations; | ||
using System.Runtime.Serialization; | ||
using Newtonsoft.Json; | ||
using Newtonsoft.Json.Converters; | ||
|
||
|
||
namespace Oci.AilanguageService.Models | ||
{ | ||
/// <summary> | ||
/// The documents details to detect personal identification information. | ||
/// </summary> | ||
public class BatchDetectLanguagePiiEntitiesDetails | ||
{ | ||
|
||
/// <value> | ||
/// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment that calls the API, inference will be served from pre trained model | ||
/// </value> | ||
[JsonProperty(PropertyName = "compartmentId")] | ||
public string CompartmentId { get; set; } | ||
|
||
/// <value> | ||
/// List of documents to detect personal identification information. | ||
/// </value> | ||
/// <remarks> | ||
/// Required | ||
/// </remarks> | ||
[Required(ErrorMessage = "Documents is required.")] | ||
[JsonProperty(PropertyName = "documents")] | ||
public System.Collections.Generic.List<TextDocument> Documents { get; set; } | ||
|
||
/// <value> | ||
/// Mask recognized PII entities with different modes. | ||
/// </value> | ||
[JsonProperty(PropertyName = "masking")] | ||
public System.Collections.Generic.Dictionary<string, PiiEntityMasking> Masking { get; set; } | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
* Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. | ||
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. | ||
*/ | ||
|
||
// NOTE: Code generated by OracleSDKGenerator. | ||
// DO NOT EDIT this file manually. | ||
|
||
|
||
using System.ComponentModel.DataAnnotations; | ||
using System.Runtime.Serialization; | ||
using Newtonsoft.Json; | ||
using Newtonsoft.Json.Converters; | ||
|
||
|
||
namespace Oci.AilanguageService.Models | ||
{ | ||
/// <summary> | ||
/// Result of batch detect personal identification. | ||
/// </summary> | ||
public class BatchDetectLanguagePiiEntitiesResult | ||
{ | ||
|
||
/// <value> | ||
/// List of succeeded document response. | ||
/// </value> | ||
/// <remarks> | ||
/// Required | ||
/// </remarks> | ||
[Required(ErrorMessage = "Documents is required.")] | ||
[JsonProperty(PropertyName = "documents")] | ||
public System.Collections.Generic.List<PiiEntityDocumentResult> Documents { get; set; } | ||
|
||
/// <value> | ||
/// List of failed document response. | ||
/// </value> | ||
[JsonProperty(PropertyName = "errors")] | ||
public System.Collections.Generic.List<DocumentError> Errors { get; set; } | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/* | ||
* Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. | ||
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. | ||
*/ | ||
|
||
// NOTE: Code generated by OracleSDKGenerator. | ||
// DO NOT EDIT this file manually. | ||
|
||
|
||
using System.ComponentModel.DataAnnotations; | ||
using System.Runtime.Serialization; | ||
using Newtonsoft.Json; | ||
using Newtonsoft.Json.Converters; | ||
|
||
|
||
namespace Oci.AilanguageService.Models | ||
{ | ||
/// <summary> | ||
/// PII entity object. | ||
/// </summary> | ||
public class PiiEntity | ||
{ | ||
|
||
/// <value> | ||
/// The number of Unicode code points preceding this entity in the submitted text. | ||
/// </value> | ||
[JsonProperty(PropertyName = "offset")] | ||
public System.Nullable<int> Offset { get; set; } | ||
|
||
/// <value> | ||
/// Length of PII entity text. | ||
/// </value> | ||
[JsonProperty(PropertyName = "length")] | ||
public System.Nullable<int> Length { get; set; } | ||
|
||
/// <value> | ||
/// Entity text like name of person, Organization and so on. | ||
/// </value> | ||
[JsonProperty(PropertyName = "text")] | ||
public string Text { get; set; } | ||
|
||
/// <value> | ||
/// Type of PII entity text like PER, LOC. | ||
/// </value> | ||
[JsonProperty(PropertyName = "type")] | ||
public string Type { get; set; } | ||
|
||
/// <value> | ||
/// Score or confidence for detected PII entity. | ||
/// </value> | ||
[JsonProperty(PropertyName = "score")] | ||
public System.Double Score { get; set; } | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
/* | ||
* Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. | ||
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. | ||
*/ | ||
|
||
// NOTE: Code generated by OracleSDKGenerator. | ||
// DO NOT EDIT this file manually. | ||
|
||
|
||
using System.ComponentModel.DataAnnotations; | ||
using System.Runtime.Serialization; | ||
using Newtonsoft.Json; | ||
using Newtonsoft.Json.Converters; | ||
|
||
|
||
namespace Oci.AilanguageService.Models | ||
{ | ||
/// <summary> | ||
/// The document response for batch detect personal identification. | ||
/// </summary> | ||
public class PiiEntityDocumentResult | ||
{ | ||
|
||
/// <value> | ||
/// Document unique identifier defined by the user. | ||
/// </value> | ||
/// <remarks> | ||
/// Required | ||
/// </remarks> | ||
[Required(ErrorMessage = "Key is required.")] | ||
[JsonProperty(PropertyName = "key")] | ||
public string Key { get; set; } | ||
|
||
/// <value> | ||
/// List of batch detect personal identification. | ||
/// </value> | ||
/// <remarks> | ||
/// Required | ||
/// </remarks> | ||
[Required(ErrorMessage = "Entities is required.")] | ||
[JsonProperty(PropertyName = "entities")] | ||
public System.Collections.Generic.List<PiiEntity> Entities { get; set; } | ||
|
||
/// <value> | ||
/// Masked text per given mask mode. | ||
/// </value> | ||
/// <remarks> | ||
/// Required | ||
/// </remarks> | ||
[Required(ErrorMessage = "MaskedText is required.")] | ||
[JsonProperty(PropertyName = "maskedText")] | ||
public string MaskedText { get; set; } | ||
|
||
/// <value> | ||
/// Language code per the [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) standard. | ||
/// </value> | ||
/// <remarks> | ||
/// Required | ||
/// </remarks> | ||
[Required(ErrorMessage = "LanguageCode is required.")] | ||
[JsonProperty(PropertyName = "languageCode")] | ||
public string LanguageCode { get; set; } | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/* | ||
* Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. | ||
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. | ||
*/ | ||
|
||
// NOTE: Code generated by OracleSDKGenerator. | ||
// DO NOT EDIT this file manually. | ||
|
||
|
||
using System.ComponentModel.DataAnnotations; | ||
using System.Runtime.Serialization; | ||
using Newtonsoft.Json; | ||
using Newtonsoft.Json.Converters; | ||
|
||
|
||
namespace Oci.AilanguageService.Models | ||
{ | ||
/// <summary> | ||
/// Mask PII entities with the given masking character. | ||
/// </summary> | ||
public class PiiEntityMask : PiiEntityMasking | ||
{ | ||
|
||
/// <value> | ||
/// Masking character. By default, the character is an asterisk (*) | ||
/// </value> | ||
[JsonProperty(PropertyName = "maskingCharacter")] | ||
public string MaskingCharacter { get; set; } | ||
|
||
/// <value> | ||
/// Number of characters to leave unmasked. By default, the whole entity is masked. | ||
/// </value> | ||
[JsonProperty(PropertyName = "leaveCharactersUnmasked")] | ||
public System.Nullable<int> LeaveCharactersUnmasked { get; set; } | ||
|
||
/// <value> | ||
/// Unmask from the end. By default, the whole entity is masked. This field works in concert with | ||
/// leaveCharactersUnmasked. For example, leaveCharactersUnmasked is 3 and isUnmaskedFromEnd is true, | ||
/// then if the entity is India the masked entity/result is **dia. | ||
/// | ||
/// </value> | ||
[JsonProperty(PropertyName = "isUnmaskedFromEnd")] | ||
public System.Nullable<bool> IsUnmaskedFromEnd { get; set; } | ||
|
||
[JsonProperty(PropertyName = "mode")] | ||
private readonly string mode = "MASK"; | ||
} | ||
} |
Oops, something went wrong.