ctions">
<h3>User-Defined Functions<a class="headerlink" href="#user-defined-functions" title="Permalink to this headline">¶</a></h3>
<p>In TextBrewer, there are two functions that should be implemented by users: <strong>callback</strong> and <strong>adaptor</strong>.</p>
<div class="section" id="callback">
<h4><strong>Callback</strong><a class="headerlink" href="#callback" title="Permalink to this headline">¶</a></h4>
<p>At each checkpoint, after saving the student model, the callback function will be ca