<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Подсчитать количество и частоту слов в тексте]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=16526</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=16526&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Подсчитать количество и частоту слов в тексте».]]></description>
		<lastBuildDate>Tue, 10 Aug 2021 07:23:25 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Подсчитать количество и частоту слов в тексте]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=149213#p149213</link>
			<description><![CDATA[<p>Ребята не спорьте! Скрипт тидринкера работает прекрасно и совершенно меня удовлетворяет.</p><p>Спасибо.</p>]]></description>
			<author><![CDATA[null@example.com (upsi_daezium)]]></author>
			<pubDate>Tue, 10 Aug 2021 07:23:25 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=149213#p149213</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Подсчитать количество и частоту слов в тексте]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=149208#p149208</link>
			<description><![CDATA[<p>В смысле, &quot;ярко-красный&quot; нужно считать одним словом? Ну, это кому как нравится. Для этого после <em>\w+</em> нужно добавить <em>(-\w+)?</em></p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Mon, 09 Aug 2021 16:16:45 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=149208#p149208</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Подсчитать количество и частоту слов в тексте]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=149206#p149206</link>
			<description><![CDATA[<p>Не совсем верно:<br /></p><div class="codebox"><pre><code>text =
(
ярко-красный красный
)</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Mon, 09 Aug 2021 16:09:07 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=149206#p149206</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Подсчитать количество и частоту слов в тексте]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=149205#p149205</link>
			<description><![CDATA[<p>Теперь есть:<br /></p><div class="codebox"><pre><code>text =
(
Подсчитать количество и частоту слов в тексте
Нужно подсчитать количество уникальных слов в тексте, а также их частоту (сколько раз встречаются).
Есть ли готовая библиотека или что-то такое?
)
Words := {}, m := &quot;&quot;
while RegExMatch(text, &quot;O)(*UCP)\w+&quot;, m, m ? m.Pos + m.Len : 1) {
   word := Format(&quot;{:L}&quot;, m[0])
   if Words.HasKey(word)
      ++Words[word]
   else
      Words[word] := 1
}
count := 0, str := &quot;&quot;
for k, v in Words {
   count++
   str .= k . &quot; (&quot; . v . &quot;)`n&quot;
}
MsgBox,, Всего %count%, % str</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Mon, 09 Aug 2021 14:29:32 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=149205#p149205</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Подсчитать количество и частоту слов в тексте]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=149204#p149204</link>
			<description><![CDATA[<p>Нужно подсчитать количество уникальных слов в тексте, а также их частоту (сколько раз встречаются).<br />Есть ли готовая библиотека или что-то такое?</p>]]></description>
			<author><![CDATA[null@example.com (upsi_daezium)]]></author>
			<pubDate>Mon, 09 Aug 2021 10:18:21 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=149204#p149204</guid>
		</item>
	</channel>
</rss>
