| Server IP : 54.37.205.81 / Your IP : 216.73.216.76 Web Server : nginx/1.22.1 System : Linux vps-249481fa 6.1.0-50-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.176-1 (2026-07-02) x86_64 User : debian ( 1000) PHP Version : 8.2.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python3/dist-packages/nltk/tbl/__pycache__/ |
Upload File : |
�
T�c�+ � �v � d dl mZmZ d dlmZ G d� de�� � Zej G d� de� � � � ZdS ) � )�ABCMeta�abstractmethod)�jsontagsc �H � e Zd ZdZd� Zd d�Zed� � � Zd� Zd� Z d� Z
dS )
�TagRulea
An interface for tag transformations on a tagged corpus, as
performed by tbl taggers. Each transformation finds all tokens
in the corpus that are tagged with a specific original tag and
satisfy a specific condition, and replaces their tags with a
replacement tag. For any given transformation, the original
tag, replacement tag, and condition are fixed. Conditions may
depend on the token under consideration, as well as any other
tokens in the corpus.
Tag rules must be comparable and hashable.
c �$ � || _ || _ d S �N)�original_tag�replacement_tag)�selfr
r s �//usr/lib/python3/dist-packages/nltk/tbl/rule.py�__init__zTagRule.__init__ s � �(���B�.���F�F� Nc � � �� |�)t t t �� � � � � � }� �fd�|D � � }|D ]}�| d � j f�|<