
    9i
                     p   S SK Jr  S SKJr  S SKJr  SrSrSr\R                  \\R                  \R                  \R                  \R                  \R                  /\\R                  0\R                  \\R                  \R                  \R                   \R"                  /\\R                  0\R                  \\R                  \R                  \R                   \R"                  /\\R                  0\R$                  \\R$                  \R&                  /\\R$                  0\R(                  \\R(                  \R*                  /\\R(                  0\R,                  \\R,                  /\\R,                  0\R.                  \\R.                  /\\R.                  00rS r\" \5      rS\4S	 jrS
 rg)    )
TaskModels)registry)Tasks	sub_tasksparent_task
task_modelc                     [        5       nU  H.  nX   [            H  n[        U[        X   [           0X'   M     M0     U$ N)dict	SUB_TASKSPARENT_TASK
TASK_MODEL)forward_indexinverted_indexindexitems       [/var/www/html/land-doc-ocr/venv/lib/python3.13/site-packages/modelscope/utils/task_utils.py_inverted_indexr   G   sI    VN!(3DUM0<$N  4      taskc                 (    U [         R                  :H  $ r
   )r   sentence_embedding)r   s    r   is_embedding_taskr   U   s    5++++r   c                 ^    U [         ;   a   [         U    [           [         U    [           4$ U S 4$ r
   )INVERTED_TASKS_LEVELr   r   )	group_keys    r   get_task_by_subtask_namer   Y   s@    ((#I..y9*EF 	F $r   N)modelscope.metainfor   modelscope.utilsr   modelscope.utils.constantr   r   r   r   text_classificationsentence_similaritysentiment_classificationsentiment_analysisnlitoken_classificationnamed_entity_recognitionword_segmentationpart_of_speechtext_generationtext2text_generationinformation_extractionrelation_extraction	fill_masktext_rankingDEFAULT_TASKS_LEVELr   r   strr   r    r   r   <module>r3      s   * % +	
 
%%%%**$$II
 	&&
  
&&**##  	
 	&&	! 
&&**##  	
 	&&	! 
!!&&
 	J.. 
  ((%%
 	J55# 
OOOO
 	J((	 

 	J++	i; | '':; ,C ,r   