You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A Python package that includes many state-of-the-art syntactic/semantic parsers (with pretrained models for more than 19 languages), as well as highly-parallelized implementations of several well-known and effective structured prediction algorithms.
9
+
A Python package designed for structured prediction, including reproductions of many state-of-the-art syntactic/semantic parsers (with pretrained models for more than 19 languages), and
10
10
11
11
* Dependency Parser
12
-
* Biaffine ([Dozat and Manning, 2017](https://parser.readthedocs.io/en/latest/refs.html#dozat-2017-biaffine))
13
-
* CRF/MatrixTree ([Koo et al., 2007](https://parser.readthedocs.io/en/latest/refs.html#koo-2007-structured); [Ma and Hovy, 2017](https://parser.readthedocs.io/en/latest/refs.html#ma-2017-neural))
14
-
* CRF2o ([Zhang et al., 2020a](https://parser.readthedocs.io/en/latest/refs.html#zhang-2020-efficient))
12
+
* Biaffine ([Dozat and Manning, 2017](https://openreview.net/forum?id=Hk95PK9le))
13
+
* CRF/CRF2o ([Zhang et al., 2020a](https://aclanthology.org/2020.acl-main.302))
15
14
* Constituency Parser
16
-
* CRF ([Zhang et al., 2020b](https://parser.readthedocs.io/en/latest/refs.html#zhang-2020-fast))
15
+
* CRF ([Zhang et al., 2020b](https://www.ijcai.org/Proceedings/2020/560/))
17
16
* Semantic Dependency Parser
18
-
* Biaffine ([Dozat and Manning, 2018](https://parser.readthedocs.io/en/latest/refs.html#wang-2019-second))
19
-
* MFVI/LBP ([Wang et al, 2019](https://parser.readthedocs.io/en/latest/refs.html#wang-2019-second))
17
+
* Biaffine ([Dozat and Manning, 2018](https://aclanthology.org/P18-2077))
18
+
* MFVI/LBP ([Wang et al, 2019](https://aclanthology.org/P18-2077))
19
+
20
+
highly-parallelized implementations of several well-known structured prediction algorithms.[^1]
21
+
22
+
* Tree
23
+
* MatrixTree ([Koo et al., 2007](https://www.aclweb.org/anthology/D07-1015); [Ma and Hovy, 2017](https://aclanthology.org/I17-1007))
24
+
* 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))
25
+
* Dependency2oCRF ([McDonald et al., 2006](https://www.aclweb.org/anthology/E06-1011); [Zhang et al., 2020](https://aclanthology.org/2020.acl-main.302))
26
+
* ConstituencyCRF ([Stern et al. 2017](https://aclanthology.org/P17-1076); [Zhang et al., 2020b](https://www.ijcai.org/Proceedings/2020/560/))
27
+
* Linear Chain:
28
+
* LinearChainCRF ([Lafferty et al., 2001](http://www.aladdin.cs.cmu.edu/papers/pdfs/y2001/crf.pdf))
20
29
21
30
## Installation
22
31
@@ -37,7 +46,7 @@ As a prerequisite, the following requirements should be satisfied:
37
46
38
47
## Usage
39
48
40
-
`SuPar` allows you to download the pretrained model and parse sentences with a few lines of code:
49
+
You can download the pretrained model and parse sentences with just a few lines of code:
41
50
```py
42
51
>>>from supar import Parser
43
52
>>> parser = Parser.load('biaffine-dep-en')
@@ -288,3 +297,7 @@ If you are interested in them, please cite:
288
297
pages = {4046--4053}
289
298
}
290
299
```
300
+
301
+
## Acknowledge
302
+
303
+
[^1]: The implementations of structured distributions and semirings are heavily borrowed from [torchstruct](https://github.com/harvardnlp/pytorch-struct) with some tailoring.
0 commit comments