o
    Jεi9                     @   s   d dl mZmZmZmZmZmZmZ d dlm	Z	 d dl
mZ ddlmZ ddlmZ ddlmZ dZee jd	 Zed
 Zee Zee ZdedefddZdddZdS )   )
Dictionary	Tokenizer	SplitModeMorphemeListMorphemeWordInfo
PosMatcher)Config)errors    )import_module)	find_spec)Pathz0.6.10	resourceszsudachi.json	dict_typereturnc                 C   s.   t td|  jj}|d d }t| S )Nsudachidict_r   z
system.dic)_Path_import_module__file__parentstrresolve)r   pkg_pathdic_path r   F/home/ubuntu/.local/lib/python3.10/site-packages/sudachipy/__init__.py_get_absolute_dict_path   s   r   corec                 C   s@   | dvrt dtd|  }|rt| S td|  d|  d)N)smallr   fullz/"dict_type" must be "small", "core", or "full".r   zPackage `sudachidict_zO` does not exist. You may install it with a command `$ pip install sudachidict_`)
ValueError
_find_specr   ModuleNotFoundError)r   is_installedr   r   r   _find_dict_path    s   r&   N)r   )	sudachipyr   r   r   r   r   r   r   configr	    r
   	importlibr   r   importlib.utilr   r#   pathlibr   r   __version__r   r   r   _DEFAULT_RESOURCEDIR_DEFAULT_SETTINGFILEr   r   r&   r   r   r   r   <module>   s   $ 	