1193 Commits

Author SHA1 Message Date
Stypox
60349aefdc
Rename standard/helper to standard/util 2024-06-04 11:45:03 +02:00
Stypox
d9d89d2012
Compare StandardScore even between different skills 2024-06-04 11:36:51 +02:00
Stypox
0396062298
Rename standard2 to standard 2024-06-03 16:30:59 +02:00
Stypox
d24b6f3c74
Fix tests not compiling after adding sentencesLanguage 2024-06-03 16:13:03 +02:00
Stypox
1924d205c8
Move old "standard" recognizer to test module
It will be kept just to run tests
2024-06-03 16:13:03 +02:00
Stypox
1fc264dd44
Change Skill.score() signature 2024-06-03 16:13:03 +02:00
Stypox
865f79200d
Add toString() to *Construct for easier debugging 2024-06-03 16:13:02 +02:00
Stypox
b2abc6ac3e
Fully implement WordConstruct 2024-06-03 16:13:02 +02:00
Stypox
a896d81dc4
Suppress warnings in autogenerated Sentences file 2024-06-03 16:13:02 +02:00
Stypox
9ee9914cf1
Rename sentencesCompiler2 to sentencesCompiler 2024-06-03 16:13:02 +02:00
Stypox
8c556c02ab
Remove useless try-catch in LocaleManager 2024-06-03 16:13:02 +02:00
Stypox
375f8990e2
Remove sentencesCompiler gradle task 2024-06-03 16:13:02 +02:00
Stypox
e1fbab44d4
Use sentencesLanguage to index Sentences map 2024-06-03 16:13:02 +02:00
Stypox
e87a394f00
Remove unused imports in skills 2024-06-03 16:13:02 +02:00
Stypox
12505ba263
Set locale based on Sentences instead of Sections 2024-06-03 16:13:02 +02:00
Stypox
23597c2180
Convert all *.dslf to *.yml 2024-06-03 16:13:02 +02:00
Stypox
4ecf7a7c26
Convert all en skills to yml 2024-06-03 16:13:01 +02:00
Stypox
396bc28fd4
Take benchmark after making capturing groups O(n) 2024-06-03 16:10:22 +02:00
Stypox
ded9f491df
Fix CapturingConstruct doing incorrect calculations 2024-06-03 15:59:11 +02:00
Stypox
ff77b6f637
Fix capturing construct wrongly adding refWeight twice 2024-06-03 08:08:48 +02:00
Stypox
f8fa097fc7
[Optimize] Use O(n) time in capturing group, making everything O(n*m)
Where n is the number of letters in the user input, while m is the number of reference constructs to match
2024-06-02 17:39:44 +02:00
Stypox
b5c602addf
Improve spacing of samples and retake latest benchmark 2024-06-02 16:18:16 +02:00
Stypox
b0d3c4b225
Fix BenchmarkRunner reallocating string repeatedly 2024-06-02 15:46:15 +02:00
Stypox
ea4b4894f0
Add benchmarks after optimizing to O(n²) 2024-06-02 15:33:36 +02:00
Stypox
352d80b5e9
[Optimize] Restructure to allow for O(n²) instead of O(n³) 2024-06-02 15:32:43 +02:00
Stypox
eb851ca1bc
Avoid division by zero in scoreIn01Range 2024-06-02 14:51:22 +02:00
Stypox
29daa8962b
Make scoreIn01Range work better alongside old "standard" 2024-06-02 11:19:11 +02:00
Stypox
65b9d1e197
Upgrade AGP 2024-06-02 11:09:46 +02:00
Stypox
6824ee0b91
Add benchmarks after adding cache to word constructs 2024-06-01 23:07:30 +02:00
Stypox
0f89b7cee2
[Optimize] Precalculate cache on word constructs 2024-06-01 23:06:31 +02:00
Stypox
24665c24b1
Add PerformanceTest even for old "standard/" folder 2024-06-01 22:23:55 +02:00
Stypox
dd958b2e72
Add benchmarks after never making capturing groups shorter 2024-06-01 20:05:32 +02:00
Stypox
00f619d692
[Optimize] (probably useless) never make capturing groups shorter 2024-06-01 19:44:57 +02:00
Stypox
294962042b
Use polynomial fit instead of exp in plot_benchmarks.py 2024-06-01 19:40:37 +02:00
Stypox
b10086d7bb
Add benchmarks after creating less objects for capturing groups 2024-05-30 18:55:13 +02:00
Stypox
80cf94132a
[Optimize] Improve handling of capturing groups 2024-05-30 18:54:17 +02:00
Stypox
b7a54f14a6
Add benchmarks after avoiding map for tokenizations 2024-05-30 18:06:54 +02:00
Stypox
e21849192f
[Optimize] Avoid using tokenizations map 2024-05-30 18:02:33 +02:00
Stypox
75deb67e06
Add benchmarks after adding cache 2024-05-30 17:20:58 +02:00
Stypox
2a714579a2
Fix plot_benchmarks.py using from increment size 2024-05-30 17:20:32 +02:00
Stypox
51218489a1
Improve choosing x for plot strategy 2024-05-30 17:19:58 +02:00
Stypox
2cde9030a0
Use log scale in plot_benchmarks.py 2024-05-30 16:10:01 +02:00
Stypox
3b73ee4b08
[Optimize] Use shared cache in CompositeConstruct 2024-05-30 16:10:01 +02:00
Stypox
32c50eaf33
Allow constructs to have cache 2024-05-30 16:10:01 +02:00
Stypox
efa4bee622
Always start current benchmark folder with 999_ 2024-05-30 16:10:01 +02:00
Stypox
f50efa147c
Add benchmark for replacing list with map 2024-05-30 16:10:01 +02:00
Stypox
05b03707f5
Imrove names in plot_benchmarks.py 2024-05-30 16:10:00 +02:00
Stypox
1559044f55
[Optimize] Use list instead of map for capturing groups 2024-05-30 16:09:03 +02:00
Stypox
1db77819e3
Improve layout in plot_benchmarks.py 2024-05-30 16:09:03 +02:00
Stypox
d687d395d5
Make OptionalConstruct a class instead of an object 2024-05-30 16:09:03 +02:00