python-corenlp-protobuf:Stanford CoreNLP的protobuf的Python绑定

时间:2021-04-29 15:11:03
【文件属性】:
文件名称:python-corenlp-protobuf:Stanford CoreNLP的protobuf的Python绑定
文件大小:29KB
文件格式:ZIP
更新时间:2021-04-29 15:11:03
corenlp Python Stanford CoreNLP Python绑定 该软件包包含由生成的的protobuf规范的python绑定。 这些绑定可用于解析由例如生成的二进制数据。 用法: from corenlp_protobuf import Document , parseFromDelimitedString # document.dat contains a serialized Document. with open ( 'document.dat' , 'r' ) as f : buf = f . read () doc = Document () parseFromDelimitedString ( doc , buf ) # You can access the sentences from doc.sentence. sentence = doc . sentence [ 0 ]
【文件预览】:
python-corenlp-protobuf-master
----MANIFEST.in(152B)
----.travis.yml(241B)
----README.rst(1KB)
----tests()
--------data()
--------test_read.py(4KB)
--------__init__.py(208B)
----tox.ini(750B)
----LICENSE(1KB)
----corenlp_protobuf()
--------CoreNLP_pb2.py(156KB)
--------__init__.py(1KB)
----setup.cfg(253B)
----doc()
--------CoreNLP.proto(21KB)
----setup.py(4KB)
----.gitignore(1KB)

网友评论