similar finder for a poem with no cached similars #470

This commit is contained in:
Hamid Reza Mohammadi 2025-03-04 10:02:38 +03:30
parent d6dd76b5e0
commit 60898a0be7
2 changed files with 16 additions and 0 deletions

View File

@ -1465,6 +1465,15 @@ namespace GanjooRazor.Pages
"او",
"ما",
"شما",
"مرا",
"ار",
"داری",
"بیا",
"همه",
"گو",
"مکن",
"زد",
"گفتم",
];
wordCounts = wordCounts.Where(w => !stopWords.Contains(w.Word)).Take(100).ToArray();
}

View File

@ -429,6 +429,13 @@
</td>
<td>
<a href="@Html.Raw($"/simi/?v={Uri.EscapeDataString(s.GanjoorMetre.Rhythm)}&amp;a={Model.GanjoorPage.PoetOrCat.Poet.Id}")">@s.GanjoorMetre.Rhythm</a>
@if (!string.IsNullOrEmpty(s.RhymeLetters))
{
<a href="@Html.Raw($"/simi/?v={Uri.EscapeDataString(s.GanjoorMetre.Rhythm)}&amp;g={Uri.EscapeDataString(s.RhymeLetters)}")" role="button" class="cursor-pointer" title="مشابه‌یابی بر اساس وزن و قافیه">
<i class="notranslate noindent-info-button rhyming-poems"></i>
</a>
}
@if (Model.LoggedIn)
{
<a href="/User/Section?poemId=@Model.GanjoorPage.Id&index=@s.Index#metre" role="button" class="cursor-pointer" title="ویرایش وزن">