Detector constructor

Detector(
  1. DetectorFactory factory
)

Construct Detector instance.

Implementation

Detector(this.factory)
    : seed = factory.seed ?? DateTime.now().millisecondsSinceEpoch {
  wordLangProbMap = factory.wordLangProbMap;
  langList = factory.langList;
  random = Random();
}