Skip to content

Commit

Permalink
deploy: ba948fd
Browse files Browse the repository at this point in the history
  • Loading branch information
alanakbik committed Feb 3, 2024
1 parent 53cc2a8 commit d0a66b0
Show file tree
Hide file tree
Showing 187 changed files with 372 additions and 372 deletions.
2 changes: 1 addition & 1 deletion master/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 664b784f50b73c6d65cb145c90a7093f
config: fd0071b740104e8f010b5d455ad5b1e0
tags: 645f666f9bcd5a90fca523b33c5a78b7
Binary file modified master/.doctrees/api/datasets/base.doctree
Binary file not shown.
Binary file modified master/.doctrees/api/datasets/biomedical.doctree
Binary file not shown.
Binary file modified master/.doctrees/api/datasets/document_classification.doctree
Binary file not shown.
Binary file modified master/.doctrees/api/datasets/entity_linking.doctree
Binary file not shown.
Binary file modified master/.doctrees/api/datasets/ocr.doctree
Binary file not shown.
Binary file modified master/.doctrees/api/datasets/relation_extraction.doctree
Binary file not shown.
Binary file modified master/.doctrees/api/datasets/sequence_labeling.doctree
Binary file not shown.
Binary file modified master/.doctrees/api/datasets/text_image.doctree
Binary file not shown.
Binary file modified master/.doctrees/api/datasets/text_text.doctree
Binary file not shown.
Binary file modified master/.doctrees/api/datasets/treebanks.doctree
Binary file not shown.
Binary file modified master/.doctrees/api/embeddings/base.doctree
Binary file not shown.
Binary file modified master/.doctrees/api/embeddings/document.doctree
Binary file not shown.
Binary file modified master/.doctrees/api/embeddings/image.doctree
Binary file not shown.
Binary file modified master/.doctrees/api/embeddings/legacy.doctree
Binary file not shown.
Binary file modified master/.doctrees/api/embeddings/token.doctree
Binary file not shown.
Binary file modified master/.doctrees/api/embeddings/transformer.doctree
Binary file not shown.
Binary file modified master/.doctrees/api/flair.data.doctree
Binary file not shown.
Binary file modified master/.doctrees/api/flair.datasets.doctree
Binary file not shown.
Binary file modified master/.doctrees/api/flair.doctree
Binary file not shown.
Binary file modified master/.doctrees/api/flair.embeddings.doctree
Binary file not shown.
Binary file modified master/.doctrees/api/flair.models.doctree
Binary file not shown.
Binary file modified master/.doctrees/api/flair.nn.doctree
Binary file not shown.
Binary file modified master/.doctrees/api/flair.splitter.doctree
Binary file not shown.
Binary file modified master/.doctrees/api/flair.tokenization.doctree
Binary file not shown.
Binary file modified master/.doctrees/api/flair.trainers.doctree
Binary file not shown.
Binary file modified master/.doctrees/api/flair.trainers.plugins.doctree
Binary file not shown.
Binary file modified master/.doctrees/api/index.doctree
Binary file not shown.
Binary file modified master/.doctrees/contributing/index.doctree
Binary file not shown.
Binary file modified master/.doctrees/contributing/local_development.doctree
Binary file not shown.
Binary file modified master/.doctrees/contributing/making_a_pull_request.doctree
Binary file not shown.
Binary file modified master/.doctrees/contributing/updating_documentation.doctree
Binary file not shown.
Binary file modified master/.doctrees/contributing/writing_a_good_issue.doctree
Binary file not shown.
Binary file modified master/.doctrees/environment.pickle
Binary file not shown.
Binary file modified master/.doctrees/glossary/index.doctree
Binary file not shown.
Binary file modified master/.doctrees/index.doctree
Binary file not shown.
Binary file modified master/.doctrees/tutorial/index.doctree
Binary file not shown.
Binary file modified master/.doctrees/tutorial/intro.doctree
Binary file not shown.
Binary file modified master/.doctrees/tutorial/tutorial-basics/basic-types.doctree
Binary file not shown.
Binary file modified master/.doctrees/tutorial/tutorial-basics/entity-linking.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified master/.doctrees/tutorial/tutorial-basics/index.doctree
Binary file not shown.
Binary file modified master/.doctrees/tutorial/tutorial-basics/other-models.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified master/.doctrees/tutorial/tutorial-embeddings/embeddings.doctree
Binary file not shown.
Binary file not shown.
Binary file modified master/.doctrees/tutorial/tutorial-embeddings/index.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified master/.doctrees/tutorial/tutorial-training/index.doctree
Binary file not shown.
Binary file not shown.
526 changes: 263 additions & 263 deletions master/api/datasets/biomedical.html

Large diffs are not rendered by default.

108 changes: 54 additions & 54 deletions master/api/datasets/sequence_labeling.html

Large diffs are not rendered by default.

64 changes: 32 additions & 32 deletions master/api/flair.data.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion master/api/flair.html
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ <h3>Versions</h3>

<dl class="py function">
<dt class="sig sig-object py" id="flair.set_proxies">
<span class="sig-prename descclassname"><span class="pre">flair.</span></span><span class="sig-name descname"><span class="pre">set_proxies</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">proxies</span></span></em><span class="sig-paren">)</span><a class="reference external" href="https://github.com/flairNLP/flair/blob/master/flair/file_utils.py#L32-L41"><span class="linkcode-link"><span class="pre">View</span> <span class="pre">on</span> <span class="pre">GitHub</span></span></a><a class="headerlink" href="#flair.set_proxies" title="Permalink to this definition">#</a></dt>
<span class="sig-prename descclassname"><span class="pre">flair.</span></span><span class="sig-name descname"><span class="pre">set_proxies</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">proxies</span></span></em><span class="sig-paren">)</span><a class="reference external" href="https://github.com/flairNLP/flair/blob/master/flair/file_utils.py#L33-L42"><span class="linkcode-link"><span class="pre">View</span> <span class="pre">on</span> <span class="pre">GitHub</span></span></a><a class="headerlink" href="#flair.set_proxies" title="Permalink to this definition">#</a></dt>
<dd><p>Allows for data downloaded from urls to be forwarded to a proxy.</p>
<p>see <a class="reference external" href="https://requests.readthedocs.io/en/latest/user/advanced/#proxies">https://requests.readthedocs.io/en/latest/user/advanced/#proxies</a></p>
<dl class="field-list simple">
Expand Down
20 changes: 10 additions & 10 deletions master/api/flair.nn.html

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions master/api/flair.trainers.html
Original file line number Diff line number Diff line change
Expand Up @@ -643,27 +643,27 @@ <h3>Versions</h3>

<dl class="py class">
<dt class="sig sig-object py" id="flair.trainers.LanguageModelTrainer">
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">flair.trainers.</span></span><span class="sig-name descname"><span class="pre">LanguageModelTrainer</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">model</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">corpus</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">optimizer=&lt;class</span> <span class="pre">'torch.optim.sgd.SGD'&gt;</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">test_mode=False</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">epoch=0</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">split=0</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">loss=10000</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">optimizer_state=None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">scaler_state=None</span></span></em><span class="sig-paren">)</span><a class="reference external" href="https://github.com/flairNLP/flair/blob/master/flair/trainers/language_model_trainer.py#L153-L460"><span class="linkcode-link"><span class="pre">View</span> <span class="pre">on</span> <span class="pre">GitHub</span></span></a><a class="headerlink" href="#flair.trainers.LanguageModelTrainer" title="Permalink to this definition">#</a></dt>
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">flair.trainers.</span></span><span class="sig-name descname"><span class="pre">LanguageModelTrainer</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">model</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">corpus</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">optimizer=&lt;class</span> <span class="pre">'torch.optim.sgd.SGD'&gt;</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">test_mode=False</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">epoch=0</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">split=0</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">loss=10000</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">optimizer_state=None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">scaler_state=None</span></span></em><span class="sig-paren">)</span><a class="reference external" href="https://github.com/flairNLP/flair/blob/master/flair/trainers/language_model_trainer.py#L153-L458"><span class="linkcode-link"><span class="pre">View</span> <span class="pre">on</span> <span class="pre">GitHub</span></span></a><a class="headerlink" href="#flair.trainers.LanguageModelTrainer" title="Permalink to this definition">#</a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p>
<dl class="py method">
<dt class="sig sig-object py" id="flair.trainers.LanguageModelTrainer.train">
<span class="sig-name descname"><span class="pre">train</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">base_path</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">sequence_length</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">learning_rate</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">20</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">mini_batch_size</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">100</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">anneal_factor</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">0.25</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">patience</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">10</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">clip</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">0.25</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">max_epochs</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">1000</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">checkpoint</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">False</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">grow_to_sequence_length</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">0</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">num_workers</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">2</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">use_amp</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">False</span></span></em>, <em class="sig-param"><span class="o"><span class="pre">**</span></span><span class="n"><span class="pre">kwargs</span></span></em><span class="sig-paren">)</span><a class="reference external" href="https://github.com/flairNLP/flair/blob/master/flair/trainers/language_model_trainer.py#L179-L394"><span class="linkcode-link"><span class="pre">View</span> <span class="pre">on</span> <span class="pre">GitHub</span></span></a><a class="headerlink" href="#flair.trainers.LanguageModelTrainer.train" title="Permalink to this definition">#</a></dt>
<span class="sig-name descname"><span class="pre">train</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">base_path</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">sequence_length</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">learning_rate</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">20</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">mini_batch_size</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">100</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">anneal_factor</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">0.25</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">patience</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">10</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">clip</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">0.25</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">max_epochs</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">1000</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">checkpoint</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">False</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">grow_to_sequence_length</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">0</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">num_workers</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">2</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">use_amp</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">False</span></span></em>, <em class="sig-param"><span class="o"><span class="pre">**</span></span><span class="n"><span class="pre">kwargs</span></span></em><span class="sig-paren">)</span><a class="reference external" href="https://github.com/flairNLP/flair/blob/master/flair/trainers/language_model_trainer.py#L179-L392"><span class="linkcode-link"><span class="pre">View</span> <span class="pre">on</span> <span class="pre">GitHub</span></span></a><a class="headerlink" href="#flair.trainers.LanguageModelTrainer.train" title="Permalink to this definition">#</a></dt>
<dd></dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="flair.trainers.LanguageModelTrainer.evaluate">
<span class="sig-name descname"><span class="pre">evaluate</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">data_source</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">eval_batch_size</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">sequence_length</span></span></em><span class="sig-paren">)</span><a class="reference external" href="https://github.com/flairNLP/flair/blob/master/flair/trainers/language_model_trainer.py#L396-L412"><span class="linkcode-link"><span class="pre">View</span> <span class="pre">on</span> <span class="pre">GitHub</span></span></a><a class="headerlink" href="#flair.trainers.LanguageModelTrainer.evaluate" title="Permalink to this definition">#</a></dt>
<span class="sig-name descname"><span class="pre">evaluate</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">data_source</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">eval_batch_size</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">sequence_length</span></span></em><span class="sig-paren">)</span><a class="reference external" href="https://github.com/flairNLP/flair/blob/master/flair/trainers/language_model_trainer.py#L394-L410"><span class="linkcode-link"><span class="pre">View</span> <span class="pre">on</span> <span class="pre">GitHub</span></span></a><a class="headerlink" href="#flair.trainers.LanguageModelTrainer.evaluate" title="Permalink to this definition">#</a></dt>
<dd></dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="flair.trainers.LanguageModelTrainer._repackage_hidden">
<em class="property"><span class="pre">static</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">_repackage_hidden</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">h</span></span></em><span class="sig-paren">)</span><a class="reference external" href="https://github.com/flairNLP/flair/blob/master/flair/trainers/language_model_trainer.py#L436-L439"><span class="linkcode-link"><span class="pre">View</span> <span class="pre">on</span> <span class="pre">GitHub</span></span></a><a class="headerlink" href="#flair.trainers.LanguageModelTrainer._repackage_hidden" title="Permalink to this definition">#</a></dt>
<em class="property"><span class="pre">static</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">_repackage_hidden</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">h</span></span></em><span class="sig-paren">)</span><a class="reference external" href="https://github.com/flairNLP/flair/blob/master/flair/trainers/language_model_trainer.py#L434-L437"><span class="linkcode-link"><span class="pre">View</span> <span class="pre">on</span> <span class="pre">GitHub</span></span></a><a class="headerlink" href="#flair.trainers.LanguageModelTrainer._repackage_hidden" title="Permalink to this definition">#</a></dt>
<dd><p>Wraps hidden states in new tensors, to detach them from their history.</p>
</dd></dl>

<dl class="py method">
<dt class="sig sig-object py" id="flair.trainers.LanguageModelTrainer.load_checkpoint">
<em class="property"><span class="pre">static</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">load_checkpoint</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">checkpoint_file</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">corpus</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">optimizer=&lt;class</span> <span class="pre">'torch.optim.sgd.SGD'&gt;</span></span></em><span class="sig-paren">)</span><a class="reference external" href="https://github.com/flairNLP/flair/blob/master/flair/trainers/language_model_trainer.py#L441-L460"><span class="linkcode-link"><span class="pre">View</span> <span class="pre">on</span> <span class="pre">GitHub</span></span></a><a class="headerlink" href="#flair.trainers.LanguageModelTrainer.load_checkpoint" title="Permalink to this definition">#</a></dt>
<em class="property"><span class="pre">static</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">load_checkpoint</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">checkpoint_file</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">corpus</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">optimizer=&lt;class</span> <span class="pre">'torch.optim.sgd.SGD'&gt;</span></span></em><span class="sig-paren">)</span><a class="reference external" href="https://github.com/flairNLP/flair/blob/master/flair/trainers/language_model_trainer.py#L439-L458"><span class="linkcode-link"><span class="pre">View</span> <span class="pre">on</span> <span class="pre">GitHub</span></span></a><a class="headerlink" href="#flair.trainers.LanguageModelTrainer.load_checkpoint" title="Permalink to this definition">#</a></dt>
<dd></dd></dl>

</dd></dl>
Expand Down
Loading

0 comments on commit d0a66b0

Please sign in to comment.