Spaces:
Sleeping
Sleeping
File size: 1,243 Bytes
d916065 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
# Natural Language Toolkit: Metrics
#
# Copyright (C) 2001-2023 NLTK Project
# Author: Steven Bird <[email protected]>
# Edward Loper <[email protected]>
# URL: <https://www.nltk.org/>
# For license information, see LICENSE.TXT
#
"""
NLTK Metrics
Classes and methods for scoring processing modules.
"""
from nltk.metrics.agreement import AnnotationTask
from nltk.metrics.aline import align
from nltk.metrics.association import (
BigramAssocMeasures,
ContingencyMeasures,
NgramAssocMeasures,
QuadgramAssocMeasures,
TrigramAssocMeasures,
)
from nltk.metrics.confusionmatrix import ConfusionMatrix
from nltk.metrics.distance import (
binary_distance,
custom_distance,
edit_distance,
edit_distance_align,
fractional_presence,
interval_distance,
jaccard_distance,
masi_distance,
presence,
)
from nltk.metrics.paice import Paice
from nltk.metrics.scores import (
accuracy,
approxrand,
f_measure,
log_likelihood,
precision,
recall,
)
from nltk.metrics.segmentation import ghd, pk, windowdiff
from nltk.metrics.spearman import (
ranks_from_scores,
ranks_from_sequence,
spearman_correlation,
)
|