Пример #1
0
 public SimpleWordPairGenerator(SegmentPool segmentPool, CogProject project, double initialAlignmentThreshold, string alignerID)
 {
     _segmentPool = segmentPool;
     _project     = project;
     _alignerID   = alignerID;
     _thresholdCognateIdentifier = new ThresholdCognateIdentifier(initialAlignmentThreshold);
 }
 public override object UpdateComponent()
 {
     var cognateIdentifier = new ThresholdCognateIdentifier(_threshold);
     _projectService.Project.CognateIdentifiers[ComponentIdentifiers.PrimaryCognateIdentifier] = cognateIdentifier;
     return cognateIdentifier;
 }