o
    i                     @   s   d dl Z d dlmZ dd Ze jdg ddd Ze jd	g d
dd Ze jdg ddd Ze jddgdd Z	dS )    Nlike_numc                 C   s    d}| |}t |dksJ d S )Na  Tributes pour in for late British Labour Party leader

Tributes poured in from around the world Thursday
to the late Labour Party leader John Smith, who died earlier from a massive
heart attack aged 55.

In Washington, the US State Department issued a statement regretting "the
untimely death" of the rapier-tongued Scottish barrister and parliamentarian.

"Mr. Smith, throughout his distinguishedL   len)en_tokenizertexttokens r
   Q/home/ubuntu/.local/lib/python3.10/site-packages/spacy/tests/lang/en/test_text.py#test_en_tokenizer_handles_long_text   s   
r   ztext,length))z"The U.S. Army likes Shock and Awe.   )z1U.N. regulations are not a part of their concern.
   )u   “Isn't it?”   )z2Yes! "I'd rather have a walk", Ms. Comble sighed.    )z"'Me too!', Mr. P. Delaware cried.    )zThey ran about 10km.r   )z'But then the 6,000-year ice age came...r   c                 C   s   | |}t ||ksJ d S Nr   )r   r   lengthr	   r
   r
   r   test_en_tokenizer_handles_cnts   s   r   z
text,match))10T)1T)z10,000T)z10,00T)z999.0T)oneT)twoT)billionT)dogF),F)z1/2Tc                 C   s.   | |}t |dksJ |d j|ksJ d S )N   r   )r   r   )r   r   matchr	   r
   r
   r   test_lex_attrs_like_number&   s   r   word)third	Millionth100th	Hundredth23rd52ndc                 C   s   t | sJ d S r   r   r   r
   r
   r   )test_en_lex_attrs_like_number_for_ordinal<   s   r'   elevenc                 C   s    t | sJ t |  sJ d S r   )r   upperr&   r
   r
   r   test_en_lex_attrs_capitalsC   s   r*   )
pytestspacy.lang.en.lex_attrsr   r   markparametrizer   r   r'   r*   r
   r
   r
   r   <module>   s&    


