In this PR, we have added unit tests and e2e tests under nbs/tests/ .
There are two test files, 'test_corenlp' and 'test_regex,' that are currently not working due to issues with the 'nlp' and 'rust_spanner_regex'. For now, we have temporarily deactivated these tests. and we are working on fixing these issues.
Also, we have made some changes:
Corrected assumptions about span_start and span_end:
Previously, we assumed 0 <= span_start < span_end, but this assumption was incorrect.
Changed some file paths:
As the tests now run under nbs/tests/, we had to adjust paths to certain files. These changes include the paths to the stanford-corenlp zip file and grammar.lark and the path to enum_spanner_regex folder in the following files: session, utils, nlp, and rust_spanner_regex.
For example, the new path to stanford-corenlp-4.1.0.zip will look like this:
In this PR, we have added unit tests and e2e tests under
nbs/tests/
. There are two test files, 'test_corenlp' and 'test_regex,' that are currently not working due to issues with the 'nlp' and 'rust_spanner_regex'. For now, we have temporarily deactivated these tests. and we are working on fixing these issues. Also, we have made some changes:Corrected assumptions about
span_start
andspan_end
: Previously, we assumed0 <= span_start < span_end
, but this assumption was incorrect.Changed some file paths: As the tests now run under
nbs/tests/
, we had to adjust paths to certain files. These changes include the paths to thestanford-corenlp
zip file andgrammar.lark
and the path toenum_spanner_regex
folder in the following files:session
,utils
,nlp
, andrust_spanner_regex
.For example, the new path to
stanford-corenlp-4.1.0.zip
will look like this:instead of this