Safe Haskell | None |
---|---|
Language | Haskell98 |
Documentation
featuresIn :: DAG a (X, Y) -> [(Feature, LogFloat)] Source #
Return the list of features, together with the corresponding probabilities (specified in the dataset), in the labeled DAG.
WARNING: this function is unsuitable to compute the potential of a given (X, Y) pair w.r.t. to a CRF model for at least two reasons: * The parameters (second elements of the output list) are not from the model. * More importantly, the function does not take into account the potential labels of the OOV words.