因为dependency-Based Word Embeddings需要用到CoNLL格式的句法,这里:
https://levyomer.wordpress.com/2014/04/25/dependency-based-word-embeddings/
以下摘自
http://universaldependencies.github.io/docs/format.html
Sentences consist of one or more word lines, and word lines contain the following fields:
- ID: Word index, integer starting at 1 for each new sentence; may be a range for tokens with multiple words.
- FORM: Word form or punctuation symbol.
- LEMMA: Lemma or stem of word form.
- CPOSTAG: Universal part-of-speech tag drawn from our revised version of the Google universal POS tags.
- POSTAG: Language-specific part-of-speech tag; underscore if not available.
- FEATS: List of morphological features from the universal feature inventory or from a defined language-specific extension; underscore if not available.
- HEAD: Head of the current token, which is either a value of ID or zero (0).
- DEPREL: Universal Stanford dependency relation to the HEAD (root iff HEAD = 0) or a defined language-specific subtype of one.
- DEPS: List of secondary dependencies (head-deprel pairs).
- MISC: Any other annotation.
ID | FORM | LEMMA | CPOSTAG | POSTAG | FEATS | HEAD | DEPREL | DEPS | MISC |
1 | They | they | PRON | PRN | Case=Nom|Number=Plur | 2 | nsubj | 4 | nsubj |
2 | buy | buy | VERB | VBP | Number=Plur|Person=3|Tense=Pres | 0 | root | _ | _ |
3 | and | and | CONJ | CC | _ | 2 | cc | _ | _ |
4 | sell | sell | VERB | VBP | Number=Plur|Person=3|Tense=Pres | 2 | conj | 0 | root |
5 | books | book | NOUN | NNS | Number=Plur | 2 | dobj | 4 | dobj |
6 | . | . | PUNCT | . | _ | 2 | punct | _ | _ |
以下摘自
http://hanlp.linrunsoft.com/doc/_build/html/dependency_parser.html