| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
NLP.Scoring.SimpleUnigram
Description
This module defines a simple scoring scheme based on pairs of unigrams.
- scoreUnigram :: SimpleScoring -> IMMC -> IMMC -> Double
- data SimpleScoring = SimpleScoring {
- simpleScore :: !(BasicHashTable (IMMC, IMMC) Double)
- gapScore :: !Double
- gapOpen :: !Double
- gapExtend :: !Double
- defMatch :: !Double
- defMismatch :: !Double
Documentation
scoreUnigram :: SimpleScoring -> IMMC -> IMMC -> Double Source
Score MultiChars x and y based on the simple scoring system: (i)
lookup (x,y) and use the score if found; (ii) if (x,y) is not in the
database, then return the default matching defMatch score if x==y,
otherwise return the default mismatch defMismatch score.
data SimpleScoring Source
Collect the hashtable and scalar values for simple scoring.
Constructors
| SimpleScoring | |
Fields
| |
Instances