| 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 : /lib/python3/dist-packages/nltk/parse/__pycache__/ |
Upload File : |
�
T�cp � � � d dl Z d dlZd dlmZ e j e� � Z G d� d� � Z G d� de� � Z G d� de� � Z G d � d
� � Z
G d� d� � Zd
� Zd� Z
d� Zd� Zedk r e� � dS dS )� N��DependencyGraphc �$ � e Zd ZdZd� Zd� Zd� ZdS )�DependencyScorerIa�
A scorer for calculated the weights on the edges of a weighted
dependency graph. This is used by a
``ProbabilisticNonprojectiveParser`` to initialize the edge
weights of a ``DependencyGraph``. While typically this would be done
by training a binary classifier, any class that can return a
multidimensional list representation of the edge weights can
implement this interface. As such, it has no necessary
fields.
c �D � | j t k rt d� � �d S )Nz*DependencyScorerI is an abstract interface)� __class__r � TypeError��selfs �J/usr/lib/python3/dist-packages/nltk/parse/nonprojectivedependencyparser.py�__init__zDependencyScorerI.__init__"