Trees | Indices | Help |
|
---|
|
object --+ | DistanceMetric
Base class for semantic distance metrics. Formalism-specific distance metrics should be provided as subclasses of this.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
OPTIONS =
|
|||
name =
|
|
|||
identifier A human-readable identifier for the metric represented by this instance. |
|||
Inherited from |
|
x.__init__(...) initializes x; see help(type(x)) for signature
|
Produces a string showing a derivation of the distance metric that would be returned for the given inputs. This is useful for debugging the metric. Subclasses are not required to provide this, and there may not always be something sensible to show. |
Returns the distances summed over the given pairs of inputs. By default, this will just be the sum of the individual distances, but in some cases it may be necessary to do something else, as with f-score. The input pairs may continue |
|
identifierA human-readable identifier for the metric represented by this instance.
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Nov 26 16:04:56 2012 | http://epydoc.sourceforge.net |