我一直在努力与Senna交互,这是在使用Python的NLP处理中使用的工具。为了便于生成文档,我使用了reStructuredText文档样式,这非常简单。sphinx:没有从docstring的内容更新HTML内容
在调用make html
,很少时间(并且有时没有警告)已经示出像pntl.tools.Annotator.test的
文档字符串警告:2:警告:字段列表结束,而不一个空行意外的unindent和另外一件事情是什么是使用这个数字2在工作中显示。
def test(senna_path="/media/jawahar/jon/ubuntu/senna", sent="", dep_model="", batch=False,
jar_path="/media/jawahar/jon/ubuntu/practNLPTools-lite/pntl"):
"""please replace the path of yours environment(accouding to OS path)
:parama str senna_path: path for senna location
:parama str dep_model: stanford dependency parser model location
:parama str or list sent: the sentense to process with Senna
:parama bool batch: makeing as batch process with one or more sentense passing
:parama str jar_path: location of stanford-parser.jar file
"""
和built result的形象是被连接到显示错误的HTML内容。有关我的项目的详细信息,请参见此link
我是一种新的狮身人面像,所以请将上述文档字符串纠正为正确的格式,并将它们显示在答案中。知道**会很好,可以看出我所做的错误**。 – jawahar