Skip to content

Commit 58fdaaa

Browse files
committed
Update docs
1 parent cabb0f0 commit 58fdaaa

File tree

6 files changed

+57
-11
lines changed

6 files changed

+57
-11
lines changed

docs/source/refs.bib

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,4 +316,36 @@ @inproceedings{kim-etal-2019-unsupervised
316316
publisher = {Association for Computational Linguistics},
317317
url = {https://aclanthology.org/N19-1114},
318318
pages = {1105--1117}
319-
}
319+
}
320+
321+
@inproceedings{martins-etal-2016-sparsemax,
322+
title = {From Softmax to Sparsemax: A Sparse Model of Attention and Multi-Label Classification},
323+
author = {Martins, Andre and Astudillo, Ramon},
324+
booktitle = {Proceedings of ICML},
325+
year = {2016},
326+
address = {New York, New York, USA},
327+
publisher = {PMLR},
328+
url = {https://proceedings.mlr.press/v48/martins16.html},
329+
pages = {1614--1623}
330+
}
331+
332+
333+
@inproceedings{mensch-etal-2018-dp,
334+
title = {Differentiable Dynamic Programming for Structured Prediction and Attention},
335+
author = {Mensch, Arthur and Blondel, Mathieu},
336+
booktitle = {Proceedings of ICML},
337+
year = {2018},
338+
publisher = {PMLR},
339+
url = {https://proceedings.mlr.press/v80/mensch18a.html},
340+
pages = {3462--3471}
341+
}
342+
343+
@inproceedings{correia-etal-2020-efficient,
344+
author = {Correia, Gon\c{c}alo and Niculae, Vlad and Aziz, Wilker and Martins, Andr\'{e}},
345+
booktitle = {Advances in NIPS},
346+
publisher = {Curran Associates, Inc.},
347+
title = {Efficient Marginalization of Discrete and Structured Latent Variables via Sparsity},
348+
url = {https://proceedings.neurips.cc/paper/2020/hash/887caadc3642e304ede659b734f79b00-Abstract.html},
349+
year = {2020},
350+
pages = {11789--11802}
351+
}
Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,16 @@
1-
Algorithms
1+
Functions
22
==================================================================
33

4-
.. currentmodule:: supar.utils.alg
5-
6-
KMeans
7-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8-
.. autofunction:: supar.utils.alg.kmeans
4+
.. currentmodule:: supar.structs.fn
95

106
Tarjan
117
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
12-
.. autofunction:: supar.utils.alg.tarjan
8+
.. autofunction:: supar.structs.fn.tarjan
139

1410
ChuLiuEdmods
1511
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
16-
.. autofunction:: supar.utils.alg.chuliu_edmonds
12+
.. autofunction:: supar.structs.fn.chuliu_edmonds
1713

1814
MST
1915
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20-
.. autofunction:: supar.utils.alg.mst
16+
.. autofunction:: supar.structs.fn.mst

docs/source/structs/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ Structs
1111
tree
1212
linearchain
1313
vi
14+
fn

docs/source/structs/semiring.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,9 @@ KLDivergenceSemiring
4141
SampledSemiring
4242
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4343
.. autoclass:: SampledSemiring
44+
:members:
45+
46+
SparsemaxSemiring
47+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
48+
.. autoclass:: SparsemaxSemiring
4449
:members:

docs/source/utils/fn.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Functions
2+
==================================================================
3+
4+
.. currentmodule:: supar.utils.fn
5+
6+
KMeans
7+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8+
.. autofunction:: supar.utils.fn.kmeans
9+
10+
Stripe
11+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
12+
.. autofunction:: supar.utils.fn.stripe

docs/source/utils/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ Utils
66
.. toctree::
77
:maxdepth: 2
88

9-
alg
109
data
1110
field
1211
transform
1312
vocab
13+
fn

0 commit comments

Comments
 (0)