Skip to content

Commit d28a5e4

Browse files
committed
linearchain->chain
1 parent 7d34ef6 commit d28a5e4

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ A Python package designed for structured prediction, including reproductions of
1919

2020
highly-parallelized implementations of several well-known structured prediction algorithms.[^1]
2121

22+
* Chain:
23+
* LinearChainCRF ([Lafferty et al., 2001](http://www.aladdin.cs.cmu.edu/papers/pdfs/y2001/crf.pdf))
2224
* Tree
2325
* MatrixTree ([Koo et al., 2007](https://www.aclweb.org/anthology/D07-1015); [Ma and Hovy, 2017](https://aclanthology.org/I17-1007))
2426
* DependencyCRF ([Eisner et al., 2000](https://www.cs.jhu.edu/~jason/papers/eisner.iwptbook00.pdf); [Zhang et al., 2020](https://aclanthology.org/2020.acl-main.302))
2527
* Dependency2oCRF ([McDonald et al., 2006](https://www.aclweb.org/anthology/E06-1011); [Zhang et al., 2020](https://aclanthology.org/2020.acl-main.302))
2628
* ConstituencyCRF ([Stern et al. 2017](https://aclanthology.org/P17-1076); [Zhang et al., 2020b](https://www.ijcai.org/Proceedings/2020/560/))
2729
* BiLexicalizedConstituencyCRF ([Eisner et al. 1999](https://aclanthology.org/P99-1059/); [Yang et al., 2021](https://aclanthology.org/2021.acl-long.209/))
28-
* Linear Chain:
29-
* LinearChainCRF ([Lafferty et al., 2001](http://www.aladdin.cs.cmu.edu/papers/pdfs/y2001/crf.pdf))
3030

3131
## Installation
3232

docs/source/structs/linearchain.rst renamed to docs/source/structs/chain.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
Linear Chain
1+
Chain
22
================================================================
33

4-
.. currentmodule:: supar.structs.linearchain
4+
.. currentmodule:: supar.structs.chain
55

66
LinearChainCRF
77
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

docs/source/structs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Structs
88

99
dist
1010
semiring
11+
chain
1112
tree
12-
linearchain
1313
vi
1414
fn

supar/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@
2020
'BiaffineSemanticDependencyParser',
2121
'VISemanticDependencyParser',
2222
'Parser',
23+
'LinearChainCRF',
2324
'MatrixTree',
2425
'DependencyCRF',
2526
'Dependency2oCRF',
2627
'ConstituencyCRF',
2728
'BiLexicalizedConstituencyCRF',
28-
'LinearChainCRF',
2929
'DependencyLBP',
3030
'DependencyMFVI',
3131
'ConstituencyLBP',

supar/structs/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
# -*- coding: utf-8 -*-
22

3+
from .chain import LinearChainCRF
34
from .dist import StructuredDistribution
4-
from .linearchain import LinearChainCRF
55
from .tree import (BiLexicalizedConstituencyCRF, ConstituencyCRF,
66
Dependency2oCRF, DependencyCRF, MatrixTree)
77
from .vi import (ConstituencyLBP, ConstituencyMFVI, DependencyLBP,
88
DependencyMFVI, SemanticDependencyLBP, SemanticDependencyMFVI)
99

1010
__all__ = ['StructuredDistribution',
11+
'LinearChainCRF',
1112
'MatrixTree',
1213
'DependencyCRF',
1314
'Dependency2oCRF',
1415
'ConstituencyCRF',
1516
'BiLexicalizedConstituencyCRF',
16-
'LinearChainCRF',
1717
'DependencyMFVI',
1818
'DependencyLBP',
1919
'ConstituencyMFVI',
File renamed without changes.

0 commit comments

Comments
 (0)