示例#1
0
 /// <summary>
 /// Instantiates a new object and initializes it with the specified values.
 /// </summary>
 /// <param name="src">The substring in the source segment</param>
 /// <param name="trg">The substring in the target segment</param>
 /// <param name="score">The score to assign to the aligned pair</param>
 /// <param name="length">A length to assign to the aligned pair (which may differ from the substring lengths)</param>
 public AlignedSubstring(Substring src, Substring trg, int score, int length)
 {
     Source = src;
     Target = trg;
     Score  = score;
     Length = length;
 }
示例#2
0
 /// <summary>
 /// Instantiates a new object and initializes it with the specified values.
 /// </summary>
 /// <param name="src">The substring in the source segment</param>
 /// <param name="trg">The substring in the target segment</param>
 /// <param name="score">The score to assign to the aligned pair</param>
 public AlignedSubstring(Substring src, Substring trg, int score)
     : this(src, trg, score, 0)
 {
 }
示例#3
0
 /// <summary>
 /// Instantiates a new object and initializes it with the specified values.
 /// </summary>
 /// <param name="src">The substring in the source segment</param>
 /// <param name="trg">The substring in the target segment</param>
 public AlignedSubstring(Substring src, Substring trg)
     : this(src, trg, 0, 0)
 {
 }