Skip to content

Commit

Permalink
add comment about LCS
Browse files Browse the repository at this point in the history
Longest Common Subsequence

Signed-off-by: Costa Shulyupin <[email protected]>
  • Loading branch information
makelinux committed Jun 25, 2024
1 parent cba3a62 commit 83468ac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/instructlab/sdg/generate_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,8 @@ def generate_data(
)
with mpctx.Pool(num_cpus) as pool:
rouge_scores = pool.map(
# Computes LCS (Longest Common Subsequence) rouge scores.
# https://github.com/google-research/google-research/blob/master/rouge/rouge_scorer.py#L186
partial(rouge_scorer._score_lcs, new_instruction_tokens),
all_instruction_tokens,
)
Expand Down

0 comments on commit 83468ac

Please sign in to comment.