Skip to content

Commit aa22d2b

Browse files
Merge pull request #55 from textkernel/rebrand
Rebrand
2 parents b22fba8 + 5f173ee commit aa22d2b

File tree

2,066 files changed

+182714
-183326
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,066 files changed

+182714
-183326
lines changed

.github/workflows/maven-publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ jobs:
3030
server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml
3131
server-username: MAVEN_USERNAME # env variable for username in deploy
3232
server-password: MAVEN_CENTRAL_TOKEN # env variable for token in deploy
33-
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
33+
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY_TK }} # Value of the GPG private key to import
3434
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase
3535

3636
- name: Publish to Apache Maven Central
3737
run: mvn -B clean deploy -DskipTests
3838
env:
39-
MAVEN_USERNAME: jw.wesson
40-
MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }}
41-
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
39+
MAVEN_USERNAME: GerskonW
40+
MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN_TK }}
41+
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE_TK }}

README.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# sovren-java
2-
![GitHub](https://img.shields.io/github/license/sovren/sovren-java?color=0575aa)
3-
![Maven Central](https://img.shields.io/maven-central/v/com.sovren/sovren-java?color=0575aa)
4-
[![build](https://github.com/sovren/sovren-java/actions/workflows/build.yml/badge.svg)](https://github.com/sovren/sovren-java/actions/workflows/build.yml)
1+
# tx-java
2+
![GitHub](https://img.shields.io/github/license/textkernel/tx-java?color=0575aa)
3+
![Maven Central](https://img.shields.io/maven-central/v/com.textkernel/tx-java?color=0575aa)
4+
[![build](https://github.com/textkernel/tx-java/actions/workflows/build.yml/badge.svg)](https://github.com/textkernel/tx-java/actions/workflows/build.yml)
55

6-
The official Java SDK for the Sovren v10 API for resume/CV and job parsing, searching, and matching. Supports Java 1.8+.
6+
The official Java SDK for the Textkernel Tx v10 API for resume/CV and job parsing, searching, and matching. Supports Java 1.8+.
77

88
## Installation
99

@@ -13,22 +13,22 @@ The official Java SDK for the Sovren v10 API for resume/CV and job parsing, sear
1313
### Gradle Users
1414
Add this dependency to your project's build file:
1515
```
16-
implementation "com.sovren:sovren-java:1.10.0"
16+
implementation "com.textkernel:tx-java:2.0.0"
1717
```
1818

1919
### Maven Users
2020
Add this dependency to your project's POM:
2121
```xml
2222
<dependency>
23-
<groupId>com.sovren</groupId>
24-
<artifactId>sovren-java</artifactId>
25-
<version>1.10.0</version>
23+
<groupId>com.textkernel</groupId>
24+
<artifactId>tx-java</artifactId>
25+
<version>2.0.0</version>
2626
</dependency>
2727
```
2828

2929
### Others
3030
You'll need to manually install the following JARs:
31-
- The Sovren JAR from https://repo1.maven.org/maven2/com/sovren/sovren-java/1.10.0/sovren-java-1.10.0.jar
31+
- The Textkernel Tx JAR from https://repo1.maven.org/maven2/com/textkernel/tx-java/2.0.0/tx-java-2.0.0.jar
3232
- [Google Gson][gson_url] from https://repo1.maven.org/maven2/com/google/code/gson/gson/2.9.0/gson-2.9.0.jar
3333
- [Square OkHttp][okhttp_url] from https://repo1.maven.org/maven2/com/squareup/okhttp3/okhttp/4.9.3/okhttp-4.9.3.jar
3434

@@ -43,39 +43,39 @@ For full code examples, see [here][examples].
4343

4444
## Usage
4545

46-
### Creating a `SovrenClient`
47-
This is the object that you will use to perform API calls. You create it with your account credentials and the `SovrenClient` makes the raw API calls for you. These credentials can be found in the [Sovren Portal][portal]. Be sure to select the correct `DataCenter` for your account.
46+
### Creating a `TxClient`
47+
This is the object that you will use to perform API calls. You create it with your account credentials and the `TxClient` makes the raw API calls for you. These credentials can be found in the [Tx Console][portal]. Be sure to select the correct `DataCenter` for your account.
4848
```java
49-
SovrenClient client = new SovrenClient("12345678", "abcdefghijklmnopqrstuvwxyz", DataCenter.US);
49+
TxClient client = new TxClient("12345678", "abcdefghijklmnopqrstuvwxyz", DataCenter.US);
5050
```
5151

5252
For self-hosted customers, you can create a `DataCenter` object with your custom URL using the constructor provided on that class.
5353

54-
### Handling errors and the `SovrenException`
55-
Every call to any of the methods in the `SovrenClient` should be wrapped in a `try/catch` block. Any 4xx/5xx level errors will cause a `SovrenException` to be thrown. Sometimes these are a normal and expected part of the Sovren API. For example, if you have a website where users upload resumes, sometimes a user will upload a scanned image as their resume. Sovren does not process these, and will return a `422 Unprocessable Entity` response which will throw a `SovrenException`. You should handle any `SovrenException` in a way that makes sense in your application.
54+
### Handling errors and the `TxException`
55+
Every call to any of the methods in the `TxClient` should be wrapped in a `try/catch` block. Any 4xx/5xx level errors will cause a `TxException` to be thrown. Sometimes these are a normal and expected part of the Tx API. For example, if you have a website where users upload resumes, sometimes a user will upload a scanned image as their resume. Textkernel does not process these, and will return a `422 Unprocessable Entity` response which will throw a `TxException`. You should handle any `TxException` in a way that makes sense in your application.
5656

57-
Additionally, there are `SovrenUsableResumeException` and `SovrenUsableJobException` which are thrown when some error/issue occurs in the API, but the response still contains a usable resume/job. For example, if you are geocoding while parsing and there is a geocoding error (which happens after parsing is done), the `ParsedResume` might still be usable in your application.
57+
Additionally, there are `TxUsableResumeException` and `TxUsableJobException` which are thrown when some error/issue occurs in the API, but the response still contains a usable resume/job. For example, if you are geocoding while parsing and there is a geocoding error (which happens after parsing is done), the `ParsedResume` might still be usable in your application.
5858

5959
### How to create a Matching UI session
6060
You may be wondering, "where are the Matching UI endpoints/methods?". We have made the difference between a normal API call (such as `Search`) and its equivalent Matching UI call extremely trivial. See the following example:
6161

6262
```java
63-
SovrenClient client = new SovrenClient("12345678", "abcdefghijklmnopqrstuvwxyz", DataCenter.US);
63+
TxClient client = new TxClient("12345678", "abcdefghijklmnopqrstuvwxyz", DataCenter.US);
6464
List<String> indexesToSearch = ...;
6565
FilterCriteria searchQuery = ...;
6666

6767
SearchResponse searchResponse = client.search(indexesToSearch, searchQuery, null, null);
6868
```
69-
To generate a Matching UI session with the above Search query, you simply need to call the `ui(...)` method on the `SovrenClient` object, pass in any UI settings, and then make the same call as above:
69+
To generate a Matching UI session with the above Search query, you simply need to call the `ui(...)` method on the `TxClient` object, pass in any UI settings, and then make the same call as above:
7070
```java
7171
MatchUISettings uiSettings = ...;
7272
GenerateUIResponse uiResponse = client.ui(uiSettings).search(indexesToSearch, searchQuery, null, null);
7373
```
74-
For every relevant method in the `SovrenClient`, you can create a Matching UI session for that query by doing the same as above.
74+
For every relevant method in the `TxClient`, you can create a Matching UI session for that query by doing the same as above.
7575

76-
[javadoc_url]: https://sovren.github.io/sovren-java/
76+
[javadoc_url]: https://textkernel.github.io/tx-java/
7777
[gson_url]: https://github.com/google/gson
7878
[okhttp_url]: https://github.com/square/okhttp
79-
[examples]: https://github.com/sovren/sovren-java/tree/master/examples
80-
[portal]: https://portal.sovren.com
81-
[api-docs]: https://sovren.com/technical-specs/latest/rest-api/overview/
79+
[examples]: https://github.com/textkernel/tx-java/tree/master/examples
80+
[portal]: https://cloud.textkernel.com/tx/console
81+
[api-docs]: https://developer.textkernel.com/tx-platform/v10/overview/

0 commit comments

Comments
 (0)