#PennToPCFG
从 Penn Treebank 风格的语料库(例如华尔街日报)中学习未词法化的 PCFG。
需要 NLTK2 来读取树库和处理树。
##用法
usage: PennToPCFG.py [-h] [-p PENN] [-g GRAMMAR] [-pe PENNEVAL] [-s SENTENCES]
[-t TREES] [-l LENGTH] [-b DEBINARIZE DEBINARIZE]
Learns an unlexicalised PCFG from a Penn Treebank file
optional arguments:
-h, --help show this help message and exit
-p PENN, --penn PENN The Penn
2022-10-01 18:45:22
4KB
Python
1