o
    Qi                     @   s$   d dl mZ dddZdddZdS )    )installpathNc                 C   sP   | d u rdt  } t| dd}dd |D }W d    |S 1 s!w   Y  |S )Nz1%s/postagger/dictionary/default/Adverb/adverb.txtzutf-8)encodingc                 S   s   h | ]
}|   d  qS )r   )stripsplit).0word r   F/home/ubuntu/.local/lib/python3.10/site-packages/soynlp/pos/_adverb.py	<setcomp>   s    z'load_default_adverbs.<locals>.<setcomp>)r   open)pathfwordsr   r   r	   load_default_adverbs   s   
r   c                    s.   t | tr| g}  d u rd  fdd| D S )Nu   히c                    s2   h | ]} D ]}|d  dkr|dd  | qqS )u   하Nr   )r   stemsuffixsuffixsr   r	   r
      s   2 z!stem_to_adverb.<locals>.<setcomp>)
isinstancestr)stemsr   r   r   r	   stem_to_adverb
   s
   
r   )N)soynlp.utils.utilsr   r   r   r   r   r   r	   <module>   s    
