Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KLE classification integrated in miniscanner. #4

Open
wants to merge 29 commits into
base: main
Choose a base branch
from

Conversation

MartiPuigV
Copy link
Contributor

There is now the option to enable (or not) KLE classification, using a checkbox below the textfield. The main issue is speed, as this classification uses a really large json file (~11Mb), and the request takes around 2 seconds to do the trip.

MartiPuigV and others added 21 commits July 3, 2024 14:49
…m height and causing it to stretch. It also does not reload the page, causing a useless miniscan() from the backend.
… for text input field is hard-coded at 2000 in checkTextSize.js
…js file that handled that before as well as prior translations.
…s/miniscanner/miniscan_results.html

Co-authored-by: Alexander Faithfull <[email protected]>
…d test_miniscanner now have variable and function names in snake_case.
…so fixed the redundant class problem in the test file.
@MartiPuigV
Copy link
Contributor Author

Another issue is the front-end and how we display the classification results. For now, they are with the match results for the rules, but will probably be moved further below or somewhere else.

@magenta-af
Copy link
Member

Can I ask you to rebase this on main? At the moment it seems like you have a bunch of duplicate copies of commits from your previous PR.

MartiPuigV and others added 3 commits July 11, 2024 11:54
…a prepare.sh in /code/resources/downloads/os2kledata/. Add a blank rule like regex() for when only using classification ?
@MartiPuigV
Copy link
Contributor Author

Error in my commit message. I meant a regex like $a since it will never be True. Good luck finding a string with a after the end of the string. Could be useful if the user wants to only use the classification function.

@MartiPuigV
Copy link
Contributor Author

Might need to refactor pytest for miniscanner now that i reworked the kle results.

@MartiPuigV
Copy link
Contributor Author

Might need to refactor pytest for miniscanner now that i reworked the kle results.

Just tested the miniscanner, passed all tests. Running all the tests raises an import error in another test file, probably due to the path of the imported file changing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants