<commit_before># coding: utf-8
"""Test that times like "7am" are tokenized correctly and that numbers are converted to string."""


from __future__ import unicode_literals

import pytest


@pytest.mark.xfail
@pytest.mark.parametrize('text,number', [("7am", "7"), ("11p.m.", "11")])
def test_issue736(en_tokenizer, text, number):
    tokens = en_tokenizer(text)
    assert len(tokens) == 2
    assert tokens[0].text == number
    assert tokens[0].lemma_ == number
    assert tokens[0].pos_ == 'NUM'<commit_msg>Fix and pass regression test for #736<commit_after># coding: utf-8
"""Test that times like "7am" are tokenized correctly and that numbers are converted to string."""


from __future__ import unicode_literals

import pytest


@pytest.mark.parametrize('text,number', [("7am", "7"), ("11p.m.", "11")])
def test_issue736(en_tokenizer, text, number):
    tokens = en_tokenizer(text)
    assert len(tokens) == 2
    assert tokens[0].text == number
{'fraction_non_alphanumeric': 0.1431578947368421, 'fraction_numerical': 0.03263157894736842, 'mean_word_length': 4.87037037037037, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1675362', 'n_tokens_mistral': 326, 'n_tokens_neox': 314, 'n_words': 94}