All URIs are relative to https://api.inda.ai, except if the operation defines another base path.
Method | HTTP request | Description |
---|---|---|
anonymizeCvPOST() | POST /hr/v2/parse/resume/anonymize/ | Anonymize CV |
bulkMapEntityPOST() | POST /hr/v2/keywords/bulk/map/entity/ | Bulk Map Entity |
mapEntityPOST() | POST /hr/v2/keywords/map/entity/ | Map Entity |
parseResumePOST() | POST /hr/v2/parse/resume/data/ | Parse Resume |
textExtractionPOST() | POST /hr/v2/parse/resume/text/ | Text Extraction |
anonymizeCvPOST($base_file_doc, $src_lang): \OpenAPI\Client\Model\DocumentAnonymizationResponse
Anonymize CV
This method allows you to anonymize a CV/resume (only textual documents, not scanned documents or images) by covering the main sensitive information in the document. Output is always a PDF file containing an anonymized copy of the source document. Masked entities are: given name
, family name
, birthdate
, telephone numbers
, emails
, links
, gender
, nationality
, profile picture
. Supported extensions: pdf
, doc
, docx
, odt
, txt
, html
, pptx
, rtf
.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer authorization: APIKey
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OpenAPI\Client\Api\ResumeParsingApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$base_file_doc = {"File":"<binary of document>","FileExt":"<extension of document>"}; // \OpenAPI\Client\Model\BaseFileDoc
$src_lang = 'src_lang_example'; // string | Language to use to interpret the text. If missing, language detection is performed.
try {
$result = $apiInstance->anonymizeCvPOST($base_file_doc, $src_lang);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ResumeParsingApi->anonymizeCvPOST: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
base_file_doc | \OpenAPI\Client\Model\BaseFileDoc | ||
src_lang | string | Language to use to interpret the text. If missing, language detection is performed. | [optional] |
\OpenAPI\Client\Model\DocumentAnonymizationResponse
- Content-Type:
application/json
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
bulkMapEntityPOST($multi_entity_input): \OpenAPI\Client\Model\MultiEntityMapping
Bulk Map Entity
This method wraps the Map Entity method and allows a user to send all the entities to be mapped in one API call, e.g., for pagination purposes. Note that the request does not raise any Validation Error on the input data but instead it returns all the errors in the response.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer authorization: APIKey
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OpenAPI\Client\Api\ResumeParsingApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$multi_entity_input = {"Entities":[{"EntityID":"id1","Entity":{"InputString":"Università di Torino","InputLanguage":"it","EntityType":"Data.EducationExperiences.Organization.OrganizationName","AllowedOutputs":[{"ID":"id0","Value":"Università degli Studi di Milano"},{"ID":"id1","Value":"Università degli Studi di Torino"}],"OutputLanguage":"it"}},{"EntityID":"id2","Entity":{"InputString":"Università di Torino","InputLanguage":"it","EntityType":"Data.EducationExperiences.Organization.OrganizationName","AllowedOutputs":[{"ID":"id0","Value":"Università degli Studi di Milano"},{"ID":"id1","Value":"Università degli Studi di Torino"}],"OutputLanguage":"it"}}]}; // \OpenAPI\Client\Model\MultiEntityInput
try {
$result = $apiInstance->bulkMapEntityPOST($multi_entity_input);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ResumeParsingApi->bulkMapEntityPOST: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
multi_entity_input | \OpenAPI\Client\Model\MultiEntityInput |
\OpenAPI\Client\Model\MultiEntityMapping
- Content-Type:
application/json
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
mapEntityPOST($entity_input): \OpenAPI\Client\Model\EntityMapping
Map Entity
This method maps an input string (ideally an entity extracted with the Parse Resume method) to the most similar string among a list of strings chosen by the user (AllowedOutputs). Note that, after a best match has been identified, it is actually presented as output only when it passes a similarity check, which takes into account the similarity of this best match with the input string, but also the similarity of the other elements of allowed outputs with the input string (namely, if many allowed outputs have a comparable similarity level, the similarity check is not passed, because there is not a clear winner). When the severity check is passed, the id of the best match is given in output (see the payload and response examples on the right); otherwise, an empty string is returned instead of the id. The severity of the similarity check can be controlled via the severity parameter, which takes value between 0
and 1
: a user who prefers to obtain the best match also when there is not guarantee it actually corresponds to the input string should set severity to a low value (i.e., close to 0
); vice versa, a user who prefers to have a response only when there is a high confidence in the correspondence should set severity to a large value (i.e., close to 1
); an intermediate value (such as the default value 0.5
) is appropriate in many situations. The method has been specialized for different entity types, and for each of them it performs an analysis optimized over the specific type. The currently supported entity types are Data.EducationExperiences.Organization.OrganizationName
and Data.EducationExperiences.EducationTitle
. If the entity type is a string that does not match any of the supported entity types, the mapping is performed using a non-specialized method.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer authorization: APIKey
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OpenAPI\Client\Api\ResumeParsingApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$entity_input = {"InputString":"Università di Torino","InputLanguage":"it","EntityType":"Data.EducationExperiences.Organization.OrganizationName","AllowedOutputs":[{"ID":"id0","Value":"Università degli Studi di Milano"},{"ID":"id1","Value":"Università degli Studi di Torino"}],"OutputLanguage":"it"}; // \OpenAPI\Client\Model\EntityInput
try {
$result = $apiInstance->mapEntityPOST($entity_input);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ResumeParsingApi->mapEntityPOST: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
entity_input | \OpenAPI\Client\Model\EntityInput |
\OpenAPI\Client\Model\EntityMapping
- Content-Type:
application/json
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
parseResumePOST($base_file, $src_lang, $dst_lang, $graphics): \OpenAPI\Client\Model\ExtractionItem
Parse Resume
This method performs the Information Extraction from a resume, i.e., it recognizes the named entities contained in a given resume and reconstructs the relations between them, returning a structured information in the form of a json file. The method requires in input the binary and the extension of the file and automatically performs many steps: (i) Document Layout Analysis, (ii) Optical Character Recognition (if the input document is an image), (iii) Text Extraction, (iv) Named Entity Recognition, (v) Relation Extraction, and, finally, (vi) Face Recognition (which is carried out to identify, if present, the candidate photo). The information provided in the output (see the schema below and the example on the right) can be used as structured data input for the Add Resume method (some adjustments may be required). The allowed file extensions are pdf
, doc
, docx
, odt
, txt
, html
, pptx
, rtf
, jpg
, jpeg
, png
, tif
, tiff
. Please consider to use the Info Extraction Feedback to inform us about differences between user's expectations and the actual data provided as output by INDA engine. It is very useful to improve our algorithms' performances.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer authorization: APIKey
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OpenAPI\Client\Api\ResumeParsingApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$base_file = {"File":"<binary of document>","FileExt":"<extension of document>"}; // \OpenAPI\Client\Model\BaseFile
$src_lang = 'src_lang_example'; // string | Optional. Language to use to extract data from the *Attachment.CV.File*.If missing, the detected language from the input file text is assumed as `src_lang`.
$dst_lang = 'dst_lang_example'; // string | Optional. Destination language in which the following *Data* entities are translated: *Skills*, *WorkExperiences.Skills*, *JobTitles*, *WorkExperiences.PositionTitle* and *Languages*.If missing, the input or detected `src_lang` is assumed as `dst_lang`.
$graphics = false; // bool | Whether to read skill graphs such as bars, pie charts, and symbols.
try {
$result = $apiInstance->parseResumePOST($base_file, $src_lang, $dst_lang, $graphics);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ResumeParsingApi->parseResumePOST: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
base_file | \OpenAPI\Client\Model\BaseFile | ||
src_lang | string | Optional. Language to use to extract data from the Attachment.CV.File.If missing, the detected language from the input file text is assumed as `src_lang`. | [optional] |
dst_lang | string | Optional. Destination language in which the following Data entities are translated: Skills, WorkExperiences.Skills, JobTitles, WorkExperiences.PositionTitle and Languages.If missing, the input or detected `src_lang` is assumed as `dst_lang`. | [optional] |
graphics | bool | Whether to read skill graphs such as bars, pie charts, and symbols. | [optional] [default to false] |
\OpenAPI\Client\Model\ExtractionItem
- Content-Type:
application/json
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
textExtractionPOST($base_file): \OpenAPI\Client\Model\TextResponse
Text Extraction
This method extracts the text from a resume by performing the first steps of Parse Resume. In particular, the method requires in input the binary and the extension of the file and automatically performs (i) Document Layout Analysis, (ii) Optical Character Recognition (if the input document is an image), and (iii) Text Extraction. The allowed file extensions are pdf
, doc
, docx
, odt
, txt
, html
, pptx
, rtf
, jpg
, jpeg
, png
, tif
, tiff
.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer authorization: APIKey
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OpenAPI\Client\Api\ResumeParsingApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$base_file = {"File":"<binary of document>","FileExt":"<extension of document>"}; // \OpenAPI\Client\Model\BaseFile
try {
$result = $apiInstance->textExtractionPOST($base_file);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ResumeParsingApi->textExtractionPOST: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
base_file | \OpenAPI\Client\Model\BaseFile |
\OpenAPI\Client\Model\TextResponse
- Content-Type:
application/json
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]