wsj

How to read corpus of parsed sentences using NLTK in python?

匿名 (未验证) 提交于 2019-12-03 09:14:57
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am working with the BLLIP 1987-89 WSJ Corpus Release 1 ( https://catalog.ldc.upenn.edu/LDC2000T43 ). I am trying to use NLTK's SyntaxCorpusReader class to read in the parsed sentences. I'm trying to get it to work with a simple example of just 1 file. Here is my code... from nltk.corpus.reader import SyntaxCorpusReader path = '/corpus/wsj' filename = 'wsj1' reader = SyntaxCorpusReader('/corpus/wsj','wsj1') I am able to see the raw text from the file. It returns a string of the parsed sentences. reader.raw() u"(S1 (S (PP-LOC (IN In)\n\t(NP

node vue 微信公众号(三)配置环境 本地测试

僤鯓⒐⒋嵵緔 提交于 2019-11-29 00:17:44
1.去natap 配置端口号 //本地项目是8080端口,natapp就配置8080端口 2.ngrok配合vue-cli实现外网访问 1.去 https://ngrok.com/download 下载   3.修改vue-cli中的配置文件build/webpack.dev.conf.js在devServer中添加:disableHostCheck: true,添加完成后,运行npm run dev启动项目       4. 如自己的项目是localhost:8080,在cmd命令下运行ngrok http 8080    然后会返回两个网址,复制到浏览器就可以访问了,(有点慢)     https://blog.csdn.net/wsj__wsj/article/details/81331753 来源: https://www.cnblogs.com/wangRong-smile/p/11434406.html