Skip to content

Commit e3841d2

Browse files
author
JW Wesson
committed
add time scale to salary for vacancy parsing
1 parent f39b885 commit e3841d2

File tree

4 files changed

+25
-14
lines changed

4 files changed

+25
-14
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The official Java SDK for the Textkernel Tx v10 API for resume/CV and job parsin
1313
### Gradle Users
1414
Add this dependency to your project's build file:
1515
```
16-
implementation "com.textkernel:tx-java:2.3.0"
16+
implementation "com.textkernel:tx-java:2.3.1"
1717
```
1818

1919
### Maven Users
@@ -22,13 +22,13 @@ Add this dependency to your project's POM:
2222
<dependency>
2323
<groupId>com.textkernel</groupId>
2424
<artifactId>tx-java</artifactId>
25-
<version>2.3.0</version>
25+
<version>2.3.1</version>
2626
</dependency>
2727
```
2828

2929
### Others
3030
You'll need to manually install the following JARs:
31-
- The Textkernel Tx JAR from https://repo1.maven.org/maven2/com/textkernel/tx-java/2.3.0/tx-java-2.3.0.jar
31+
- The Textkernel Tx JAR from https://repo1.maven.org/maven2/com/textkernel/tx-java/2.3.1/tx-java-2.3.1.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

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>com.textkernel</groupId>
55
<artifactId>tx-java</artifactId>
66

7-
<version>2.3.0</version>
7+
<version>2.3.1</version>
88

99
<packaging>jar</packaging>
1010
<name>Textkernel Tx Java SDK</name>

src/main/java/com/textkernel/tx/models/job/ParsedJob.java

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -95,16 +95,7 @@ public class ParsedJob extends ParsedDocument {
9595
/** Information about the application process.*/
9696
public ApplicationDetails ApplicationDetails;
9797

98-
/**
99-
* The salary found for the position
100-
* 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):
101-
* <ul>
102-
* <li>1 or 2 digits salary (9, 12): hourly</li>
103-
* <li>3 or 4 digits salary (3800, 5000): monthly</li>
104-
* <li>5 digit salary (38000, 50000): yearly</li>
105-
* </ul>
106-
* If a monthly salary is extracted, to get the annual salary it is multiplied by 14 (if country = AT) or 12 (all other countries).
107-
*/
98+
/** The salary found for the position. */
10899
public PayRange Salary;
109100

110101
/** The minimum number of working hours per week*/

src/main/java/com/textkernel/tx/models/job/PayRange.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,24 @@ public class PayRange {
2626

2727
/** Currency code (ISO 4217) applied to the {@link #Minimum} and {@link #Maximum}*/
2828
public String Currency;
29+
30+
/**
31+
* Time scale applied to the raw values to get the minimum and maximum annual salary. Possible values are:
32+
* <ul>
33+
* <li>Hourly</li>
34+
* <li>Daily</li>
35+
* <li>Weekly</li>
36+
* <li>Monthly</li>
37+
* <li>Annually</li>
38+
* </ul>
39+
* If no lexical cues are available from the vacancy, the time scale is guessed based on predefined salary ranges.
40+
* Here are some rough salary ranges (note that country-specific conditions may apply):
41+
* <ul>
42+
* <li>1 or 2 digits salary (9, 12): Hourly</li>
43+
* <li>3 or 4 digits salary (3800, 5000): Monthly</li>
44+
* <li>5 digit salary (38000, 50000): Annually</li>
45+
* </ul>
46+
* If a monthly salary is extracted, to get the annual salary it is multiplied by 14 (if country = AT) or 12 (all other countries).
47+
*/
48+
public String TimeScale;
2949
}

0 commit comments

Comments
 (0)