Skip to content

Commit

Permalink
add time scale to salary for vacancy parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
JW Wesson committed Aug 15, 2024
1 parent f39b885 commit e3841d2
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 14 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ The official Java SDK for the Textkernel Tx v10 API for resume/CV and job parsin
### Gradle Users
Add this dependency to your project's build file:
```
implementation "com.textkernel:tx-java:2.3.0"
implementation "com.textkernel:tx-java:2.3.1"
```

### Maven Users
Expand All @@ -22,13 +22,13 @@ Add this dependency to your project's POM:
<dependency>
<groupId>com.textkernel</groupId>
<artifactId>tx-java</artifactId>
<version>2.3.0</version>
<version>2.3.1</version>
</dependency>
```

### Others
You'll need to manually install the following JARs:
- The Textkernel Tx JAR from https://repo1.maven.org/maven2/com/textkernel/tx-java/2.3.0/tx-java-2.3.0.jar
- The Textkernel Tx JAR from https://repo1.maven.org/maven2/com/textkernel/tx-java/2.3.1/tx-java-2.3.1.jar
- [Google Gson][gson_url] from https://repo1.maven.org/maven2/com/google/code/gson/gson/2.9.0/gson-2.9.0.jar
- [Square OkHttp][okhttp_url] from https://repo1.maven.org/maven2/com/squareup/okhttp3/okhttp/4.9.3/okhttp-4.9.3.jar

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>com.textkernel</groupId>
<artifactId>tx-java</artifactId>

<version>2.3.0</version>
<version>2.3.1</version>

<packaging>jar</packaging>
<name>Textkernel Tx Java SDK</name>
Expand Down
11 changes: 1 addition & 10 deletions src/main/java/com/textkernel/tx/models/job/ParsedJob.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,16 +95,7 @@ public class ParsedJob extends ParsedDocument {
/** Information about the application process.*/
public ApplicationDetails ApplicationDetails;

/**
* The salary found for the position
* If no lexical cues are available from the vacancy, the time scale is guessed based on predefined salary ranges. Here are some rough salary ranges (note: country-specific conditions may apply):
* <ul>
* <li>1 or 2 digits salary (9, 12): hourly</li>
* <li>3 or 4 digits salary (3800, 5000): monthly</li>
* <li>5 digit salary (38000, 50000): yearly</li>
* </ul>
* If a monthly salary is extracted, to get the annual salary it is multiplied by 14 (if country = AT) or 12 (all other countries).
*/
/** The salary found for the position. */
public PayRange Salary;

/** The minimum number of working hours per week*/
Expand Down
20 changes: 20 additions & 0 deletions src/main/java/com/textkernel/tx/models/job/PayRange.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,24 @@ public class PayRange {

/** Currency code (ISO 4217) applied to the {@link #Minimum} and {@link #Maximum}*/
public String Currency;

/**
* Time scale applied to the raw values to get the minimum and maximum annual salary. Possible values are:
* <ul>
* <li>Hourly</li>
* <li>Daily</li>
* <li>Weekly</li>
* <li>Monthly</li>
* <li>Annually</li>
* </ul>
* If no lexical cues are available from the vacancy, the time scale is guessed based on predefined salary ranges.
* Here are some rough salary ranges (note that country-specific conditions may apply):
* <ul>
* <li>1 or 2 digits salary (9, 12): Hourly</li>
* <li>3 or 4 digits salary (3800, 5000): Monthly</li>
* <li>5 digit salary (38000, 50000): Annually</li>
* </ul>
* If a monthly salary is extracted, to get the annual salary it is multiplied by 14 (if country = AT) or 12 (all other countries).
*/
public String TimeScale;
}

0 comments on commit e3841d2

Please sign in to comment.