skill-extractor 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE +21 -0
- data/README.md +38 -0
- data/data/meta.json +14 -0
- data/data/mlp.json +1 -0
- data/data/skills.json +1 -0
- data/lib/skill_extractor/matcher.rb +105 -0
- data/lib/skill_extractor/mlp.rb +44 -0
- data/lib/skill_extractor/version.rb +3 -0
- data/lib/skill_extractor.rb +70 -0
- metadata +71 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 8057e7b80923880045825982a5825e0b384b41c20b849ce0e49a5cc098bb0253
|
|
4
|
+
data.tar.gz: 7afd725a2e619cb0a54065049841ac61bc8036f7bf65c9d312f3fea4d1626244
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 464b2e562b22c3fe65250e85b75be05f0f74181aa04928d1f9693260c797d510553b05c683d5fceaa29b7113530b7dd2fd3c4ca12266ad73ba1d22d392f57840
|
|
7
|
+
data.tar.gz: 40710d7013267639158b70e745007863c3ad135f5972e9a5567184ac96bfe7caae062868fa143037f91df3ead6e57502c4f2495a23674f6843d88dd7f970abee
|
data/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Qarera
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# skill-extractor (Ruby)
|
|
2
|
+
|
|
3
|
+
Extract skills from job postings and resumes. A 32,000-skill gazetteer proposes
|
|
4
|
+
candidates; a MiniLM + MLP context classifier accepts or rejects each one, so
|
|
5
|
+
"we value a can-do attitude" doesn't become a skill. Trained on 491K labeled
|
|
6
|
+
samples, 73% F1 on held-out job postings.
|
|
7
|
+
|
|
8
|
+
Runs on ONNX Runtime via [informers](https://github.com/ankane/informers) — the
|
|
9
|
+
MiniLM model downloads from the Hugging Face Hub on first use and is cached.
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
gem install skill-extractor
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
```ruby
|
|
16
|
+
require "skill_extractor"
|
|
17
|
+
|
|
18
|
+
text = "Senior Backend Engineer. 5+ years Python or Go, REST APIs with " \
|
|
19
|
+
"FastAPI, PostgreSQL, AWS (ECS, Lambda). Docker and Kubernetes required."
|
|
20
|
+
|
|
21
|
+
SkillExtractor.extract_skills(text)
|
|
22
|
+
# => ["aws", "docker", "ecs", "fastapi", "go", "kubernetes", "lambda",
|
|
23
|
+
# "postgresql", "python", "rest apis"]
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Lower-level API:
|
|
27
|
+
|
|
28
|
+
```ruby
|
|
29
|
+
ex = SkillExtractor::Extractor.new(quantized: true) # 23MB model, ~4x faster
|
|
30
|
+
ex.extract(text, threshold: 0.7) # stricter
|
|
31
|
+
ex.candidates(text) # raw gazetteer hits + context windows
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Part of the [skill-extractor](https://github.com/dreamjobs-tech/skill-extractor)
|
|
35
|
+
family (Python · JavaScript · Ruby · Rust — identical output, shared parity
|
|
36
|
+
fixtures). Built by [Qarera](https://www.qarera.com) — see our
|
|
37
|
+
[analysis of 360,000+ job postings](https://www.qarera.com/reports/most-in-demand-skills-2026)
|
|
38
|
+
for what this pipeline extracts at scale. MIT.
|
data/data/meta.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format": "skill-extractor-v1",
|
|
3
|
+
"embedding_model": "Xenova/all-MiniLM-L6-v2",
|
|
4
|
+
"embedding_dim": 384,
|
|
5
|
+
"max_seq_length": 256,
|
|
6
|
+
"pooling": "mean",
|
|
7
|
+
"normalize": "l2",
|
|
8
|
+
"input_template": "{skill} : {context}",
|
|
9
|
+
"context_words_before": 20,
|
|
10
|
+
"context_words_after": 21,
|
|
11
|
+
"default_threshold": 0.5,
|
|
12
|
+
"trained_on": "491K labeled samples",
|
|
13
|
+
"f1_heldout": 0.73
|
|
14
|
+
}
|