https://github.com/evolutionjobs/textkernel
.NET Core service to send CVs to Textkernel's API. See https://www.textkernel.com/hr-software/extract-cv-parsing/
https://github.com/evolutionjobs/textkernel
Last synced: 5 months ago
JSON representation
.NET Core service to send CVs to Textkernel's API. See https://www.textkernel.com/hr-software/extract-cv-parsing/
- Host: GitHub
- URL: https://github.com/evolutionjobs/textkernel
- Owner: EvolutionJobs
- License: mit
- Created: 2018-04-04T08:04:24.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-04T09:23:31.000Z (almost 8 years ago)
- Last Synced: 2025-10-14T09:14:53.737Z (5 months ago)
- Language: C#
- Homepage:
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Textkernel Service
.NET Core service to send CVs to Textkernel's Extract service.
Contact [Textkernel](https://www.textkernel.com/hr-software/extract-cv-parsing/) to access their CV Extract API.
This serialises the result to .NET structured objects, see [Model](Models).
## Startup Injection
To add this service:
``` c#
// Don't hard code these - use https://docs.microsoft.com/en-us/aspnet/core/security/app-secrets?tabs=visual-studio
string address = $"https://{textkernelService}";
string account = "your account";
string username = "your username";
string password = "your secret password";
services.AddTextkernelParser(address, account, username, password);
```
## Using the CV Parsing Service
Then this service is available as `ITextkernelParser`, for instance as a Web API action:
``` c#
[HttpPost("parseCV")]
public async Task> ParseCV(
[FromServices] ITextkernelParser parser, // Get the parser from the injected services
[FromForm] IEnumerable files) // CV files posted from an HTML form
{
var result = new List();
foreach (var f in files)
{
if (f.Length == 0)
continue;
using (var s = new MemoryStream())
{
await f.CopyToAsync(s);
var parsed = await parser.Parse(s.ToArray(), f.FileName);
result.Add(parsed);
}
}
return result;
}
```
## Request Details
Requests to the Textkernel service are sent and recieved as SOAP.