<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans-CN">
	<id>http://hlt.suda.edu.cn/index.php?action=history&amp;feed=atom&amp;title=Zhenghua-read-codes-hmm-em</id>
	<title>Zhenghua-read-codes-hmm-em - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="http://hlt.suda.edu.cn/index.php?action=history&amp;feed=atom&amp;title=Zhenghua-read-codes-hmm-em"/>
	<link rel="alternate" type="text/html" href="http://hlt.suda.edu.cn/index.php?title=Zhenghua-read-codes-hmm-em&amp;action=history"/>
	<updated>2026-11-06T01:58:12Z</updated>
	<subtitle>本wiki的该页面的版本历史</subtitle>
	<generator>MediaWiki 1.35.2</generator>
	<entry>
		<id>http://hlt.suda.edu.cn/index.php?title=Zhenghua-read-codes-hmm-em&amp;diff=2714&amp;oldid=prev</id>
		<title>Zhli：创建页面，内容为“train.sh -&gt; run.py   from tagger.cmds import Evaluate, Predict, Train  tagger/cmds/train.py  Train   Train()  def __call__    train = Corpus.load(config.ftrain)    t...”</title>
		<link rel="alternate" type="text/html" href="http://hlt.suda.edu.cn/index.php?title=Zhenghua-read-codes-hmm-em&amp;diff=2714&amp;oldid=prev"/>
		<updated>2020-10-22T07:04:17Z</updated>

		<summary type="html">&lt;p&gt;创建页面，内容为“train.sh -&amp;gt; run.py   from tagger.cmds import Evaluate, Predict, Train  tagger/cmds/train.py  Train   Train()  def __call__    train = Corpus.load(config.ftrain)    t...”&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;train.sh -&amp;gt; run.py &lt;br /&gt;
&lt;br /&gt;
from tagger.cmds import Evaluate, Predict, Train&lt;br /&gt;
&lt;br /&gt;
tagger/cmds/train.py  Train&lt;br /&gt;
&lt;br /&gt;
 Train()&lt;br /&gt;
 def __call__&lt;br /&gt;
   train = Corpus.load(config.ftrain)&lt;br /&gt;
   trainset = TextDataset(vocab.numericalize(train))&lt;br /&gt;
           train_loader = batchify(trainset, config.batch_size, False)&lt;br /&gt;
        print(f&amp;quot;{'train:':6} {len(trainset):5} sentences, {train.nwords} words in total, &amp;quot;&lt;br /&gt;
              f&amp;quot;{len(train_loader):3} batches provided&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
        tagger = Tagger(config) # from tagger import Tagger, Model  tagger/tagger.py  tagger/model.py &lt;br /&gt;
        # Tagger去做前向后相、viterbi等&lt;br /&gt;
        # Model基于Tagger，做EM参数更新&lt;br /&gt;
 &lt;br /&gt;
  迭代若干次，看准确率变化，多少次不增长就停止 patience。感觉这个patience比较怪，loss也应该看一下&lt;/div&gt;</summary>
		<author><name>Zhli</name></author>
	</entry>
</feed>