[2023-10-21] Introducing Generalization Tests for Improved Parser Accuracy #31
Elijas
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello sec-parser Community,
We're excited to introduce a key update to the sec-parser project: a feature we call "Generalization Tests."
What are Generalization Tests?
Simply put, Generalization Tests evaluate the parser's performance across a variety of financial reports. These tests scrutinize a broad array of documents to ensure consistent and accurate functioning of the parser.
Why is this Important?
Up to this point, our focus has been on unit tests and end-to-end tests to maintain the parser's quality. Generalization Tests provide an extra layer of confidence. They help us quickly spot any issues the parser may have with specific types of documents.
How Does it Work?
We utilize a tool named
pytest
to execute these Generalization Tests. The tests run in parallel, allowing multiple reports to be checked simultaneously. As of now, we have 73 unique 10-Q reports in our test database. These tests can be completed in less than 10 seconds on a laptop. For those interested in extending the database, we offer a script that makes it easy to add more reports by simply entering the stock tickers you wish to include.How to Run Generalization Tests?
Here's how to run these tests:
Open Your Terminal: Navigate to the
sec-parser
project directory.Execute the Test Command: Enter the following command to initiate the tests:
Updated Test Files
The project's file hierarchy now includes a new folder dedicated to Generalization Tests. You'll find it at
tests/generalization/
in the project tree.How to Contribute and Stay Updated
For the most accurate and current guidelines on how to contribute, test, and modify the sec-parser project, please always consult our sec-parser Contributor Guide. Your feedback and contributions are always welcome to make sec-parser even better. Should you encounter any issues or have suggestions, we invite you to share them with the community.
Warm regards,
Elijas
Beta Was this translation helpful? Give feedback.
All reactions