File tree Expand file tree Collapse file tree 6 files changed +12
-10
lines changed Expand file tree Collapse file tree 6 files changed +12
-10
lines changed Original file line number Diff line number Diff line change 3
3
You can adapt this file completely to your liking, but it should at least
4
4
contain the root `toctree` directive.
5
5
6
- supar
6
+ SuPar
7
7
=================================
8
- The :mod: `supar ` package provides a collection of state-of-the-art syntactic parsing models with Biaffine Parser as the basic architecture.
8
+ The :mod: `SuPar ` package provides a collection of state-of-the-art syntactic parsing models with Biaffine Parser as the basic architecture.
9
9
10
10
.. toctree ::
11
11
:maxdepth: 2
12
12
:caption: Contents
13
13
14
14
self
15
- supar. parsers < parsers >
16
- supar. models < models >
17
- supar. modules < modules >
18
- supar. utils < utils >
15
+ parsers
16
+ models
17
+ modules
18
+ utils
19
19
20
20
Indices and tables
21
21
==================
Original file line number Diff line number Diff line change 1
- supar.models
1
+ Models
2
2
==================
3
3
4
4
.. currentmodule :: supar.models
Original file line number Diff line number Diff line change 1
- supar.modules
1
+ Modules
2
2
==================
3
3
4
4
.. currentmodule :: supar.modules
Original file line number Diff line number Diff line change 1
- supar.parsers
1
+ Parsers
2
2
==================
3
3
4
4
.. currentmodule :: supar.parsers
Original file line number Diff line number Diff line change 1
- supar.utils
1
+ Utils
2
2
==================
3
3
4
4
.. currentmodule :: supar.utils
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ class BertEmbedding(nn.Module):
11
11
A module that directly utilizes the pretrained models in `transformers`_ to produce BERT representations.
12
12
While mainly tailored to provide input preparation and post-processing for the BERT model,
13
13
it is also compatiable with other pretrained language models like XLNet, RoBERTa and ELECTRA, etc.
14
+
14
15
Args:
15
16
model (str):
16
17
Path or name of the pretrained models registered in `transformers`_, e.g., ``'bert-base-cased'``.
@@ -31,6 +32,7 @@ class BertEmbedding(nn.Module):
31
32
requires_grad (bool):
32
33
If ``True``, the model parameters will be updated together with the downstream task.
33
34
Default: ``False``.
35
+
34
36
.. _transformers:
35
37
https://github.com/huggingface/transformers
36
38
"""
You can’t perform that action at this time.
0 commit comments