| 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/ccg/__pycache__/ |
Upload File : |
�
T�c5% � �� � d Z ddlZddlmZ ddlmZmZmZmZ ddl m
Z
ddlmZ ej
d� � Z ej
d� � Z ej
d � � Z ej
d
ej � � Z ej
dej � � Z ej
dej � � Z ej
d
� � Z G d� d� � Z G d� d� � Zd� Zd� Zd� Zd� Zd� Zdd�Zdd�Z e
d� � d� � � Z ed� � Z dS )z
CCG Lexicons
� N)�defaultdict)�CCGVar� Direction�FunctionalCategory�PrimitiveCategory)�
deprecated)�
Expressionz([A-Za-z]+)(\[[A-Za-z,]+\])?z"([A-Za-z]+(?:\[[A-Za-z,]+\])?)(.*)z([\\/])([.,]?)([.,]?)(.*)z([\S_]+)\s*(::|[-=]+>)\s*(.+)z([^{}]*[^ {}])\s*(\{[^}]+\})?z\{([^}]+)\}z([^#]*)(?:#.*)?c �2 � e Zd ZdZdd�Zd� Zd� Zd� Zd� ZdS ) �Tokenz�
Class representing a token.
token => category {semantics}
e.g. eat => S\var[pl]/var {\x y.eat(x,y)}
* `token` (string)
* `categ` (string)
* `semantics` (Expression)
Nc �0 � || _ || _ || _ d S �N)�_token�_categ�
_semantics)�self�token�categ� semanticss �2/usr/lib/python3/dist-packages/nltk/ccg/lexicon.py�__init__zToken.__init__9 s � �������#����� c � � | j S r
)r �r s r r zToken.categ>