harbor run -t openthoughts/tasktrove-exp-flat25-stackoverflow-v2-5k-stackoverflow-0246harbor download openthoughts/tasktrove-exp-flat25-stackoverflow-v2-5k-stackoverflow-0246Title: Implement a pytest-friendly tokenizer for Norwegian Bokmål with nb_tokenizer fixture
Body: I'm building a small, pytest-friendly tokenizer for Norwegian Bokmål and could use some guidance to ensure the API and behavior match my tests.
Requirements (must be implemented exactly as described):
Concrete requirements
Define a Token class (or a simple data holder) with attributes:
Implement nb_tokenizer(text: str) -> Iterable[Token]:
Provide a pytest fixture named nb_tokenizer that returns the nb_tokenizer function described above:
File layout (suggested minimal structure):
Acceptance criteria:
Notes
Example usage snippet (illustrative, not required to paste into tests):