PhonemeCost constructor

const PhonemeCost({
  1. double chosungCost = 1.5,
  2. double jungsungCost = 1.0,
  3. double jongsungCost = 0.5,
})

Constructs a PhonemeCost object with specified weights for each phoneme

Implementation

const PhonemeCost({
  this.chosungCost = 1.5,
  this.jungsungCost = 1.0,
  this.jongsungCost = 0.5,
}) : assert((chosungCost + jungsungCost + jongsungCost) == _totalPhonemeCost,
          'Total cost weight should be 3.0');