mirror of
https://github.com/explosion/spaCy.git
synced 2025-04-21 01:21:58 +03:00
Update universe.json
This commit is contained in:
parent
0340ee2598
commit
5f15cb4463
|
@ -31,16 +31,13 @@
|
|||
"github": "afriedman412"
|
||||
},
|
||||
"code_example": [
|
||||
```
|
||||
from sayswho import SaysWho
|
||||
|
||||
text = open("path/to/your/text_file.txt").read()
|
||||
sw = SaysWho()
|
||||
sw.attribute(text)
|
||||
|
||||
sw.expand_match() # see quote/cluster matches
|
||||
sw.render_to_html() # output your text, quotes and cluster matches to an html file called "temp.html"
|
||||
```
|
||||
"from sayswho import SaysWho",
|
||||
"text = open(\"path/to/your/text_file.txt\").read()",
|
||||
"sw = SaysWho()",
|
||||
"sw.attribute(text)",
|
||||
|
||||
"sw.expand_match() # see quote/cluster matches",
|
||||
"sw.render_to_html() # output your text, quotes and cluster matches to an html file called \"temp.html\""
|
||||
],
|
||||
"category": ["standalone"],
|
||||
"tags": ["attribution", "coref", "text-processing"]
|
||||
|
|
Loading…
Reference in New Issue
Block a user