Download latest PDF - Read the Docs

Transcript
educe Documentation, Release 0.1
educe.rst_dt.learning.features_dev.token_filter_li2014(token)
Token filter defined in Li et al.’s parser.
This filter only applies to tagged tokens.
educe.rst_dt.learning.features_li2014 module Partial re-implementation of the feature extraction procedure used
in [li2014text] for discourse dependency parsing on the RST-DT corpus.
Text-level discourse dependency parsing. In Proceedings of the 52nd Annual Meeting of the Association for Computational Linguistics (Vol. 1, pp. 25-35). http://www.aclweb.org/anthology/P/P14/P14-1003.pdf
educe.rst_dt.learning.features_li2014.build_doc_preprocessor()
Build the preprocessor for feature extraction in each EDU of doc
educe.rst_dt.learning.features_li2014.build_edu_feature_extractor()
Build the feature extractor for single EDUs
educe.rst_dt.learning.features_li2014.build_pair_feature_extractor()
Build the feature extractor for pairs of EDUs
TODO: properly emit features on single EDUs ; they are already stored in sf_cache, but under (slightly) different
names
educe.rst_dt.learning.features_li2014.combine_features(feats_g, feats_d, feats_gd)
Generate features by taking a (linear) combination of features.
I suspect these do not have a great impact, if any, on results.
Parameters
• feats_g (dict(feat_name, feat_val)) – features of the gov EDU
• feats_d (dict(feat_name, feat_val)) – features of the dep EDU
• feats_gd (dict(feat_name, feat_val)) – features of the (gov, dep) edge
Returns cf – combined features
Return type dict(feat_name, feat_val)
educe.rst_dt.learning.features_li2014.extract_pair_length(edu_info1, edu_info2)
Sentence tuple features
educe.rst_dt.learning.features_li2014.extract_pair_para(edu_info1, edu_info2)
Paragraph tuple features
educe.rst_dt.learning.features_li2014.extract_pair_pos(edu_info1, edu_info2)
POS tuple features
educe.rst_dt.learning.features_li2014.extract_pair_sent(edu_info1, edu_info2)
Sentence tuple features
educe.rst_dt.learning.features_li2014.extract_pair_word(edu_info1, edu_info2)
word tuple features
educe.rst_dt.learning.features_li2014.extract_single_length(edu_info)
Sentence features for the EDU
educe.rst_dt.learning.features_li2014.extract_single_para(edu_info)
paragraph features for the EDU
educe.rst_dt.learning.features_li2014.extract_single_pos(edu_info)
POS features for the EDU
4.3. Subpackages
65