Skip to content

Commit df04a9e

Browse files
committed
Improve docs
1 parent 5339d54 commit df04a9e

File tree

6 files changed

+12
-10
lines changed

6 files changed

+12
-10
lines changed

docs/source/index.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@
33
You can adapt this file completely to your liking, but it should at least
44
contain the root `toctree` directive.
55
6-
supar
6+
SuPar
77
=================================
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.
99

1010
.. toctree::
1111
:maxdepth: 2
1212
:caption: Contents
1313

1414
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
1919

2020
Indices and tables
2121
==================

docs/source/models.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
supar.models
1+
Models
22
==================
33

44
.. currentmodule:: supar.models

docs/source/modules.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
supar.modules
1+
Modules
22
==================
33

44
.. currentmodule:: supar.modules

docs/source/parsers.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
supar.parsers
1+
Parsers
22
==================
33

44
.. currentmodule:: supar.parsers

docs/source/utils.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
supar.utils
1+
Utils
22
==================
33

44
.. currentmodule:: supar.utils

supar/modules/bert.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ class BertEmbedding(nn.Module):
1111
A module that directly utilizes the pretrained models in `transformers`_ to produce BERT representations.
1212
While mainly tailored to provide input preparation and post-processing for the BERT model,
1313
it is also compatiable with other pretrained language models like XLNet, RoBERTa and ELECTRA, etc.
14+
1415
Args:
1516
model (str):
1617
Path or name of the pretrained models registered in `transformers`_, e.g., ``'bert-base-cased'``.
@@ -31,6 +32,7 @@ class BertEmbedding(nn.Module):
3132
requires_grad (bool):
3233
If ``True``, the model parameters will be updated together with the downstream task.
3334
Default: ``False``.
35+
3436
.. _transformers:
3537
https://github.com/huggingface/transformers
3638
"""

0 commit comments

Comments
 (0)