This repository was archived by the owner on Sep 13, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -107,10 +107,11 @@ Here's a small example of how to use python-zpar:
107107 tagged_sent = tagger.tag_sentence(" Do n't you want to come with me to the market ?" , tokenize = False )
108108 print_(tagged_sent)
109109
110- # get the dependency parses of the same two sentences
111- dep_parsed_sent = depparser.dep_parse_sentence (" I am going to the market." )
110+ # get the dependency parse of an already tagged sentence
111+ dep_parsed_sent = depparser.dep_parse_tagged_sentence (" I/PRP am/VBP going/VBG to/TO the/DT market/NN ./ ." )
112112 print_(dep_parsed_sent)
113113
114+ # get the dependency parse of an already tokenized sentence
114115 dep_parsed_sent = depparser.dep_parse_sentence(" Do n't you want to come with me to the market ?" , tokenize = False )
115116 print_(dep_parsed_sent)
116117
Original file line number Diff line number Diff line change 3131 tagged_sent = tagger .tag_sentence ("Do n't you want to come with me to the market ?" , tokenize = False )
3232 print_ (tagged_sent )
3333
34- # get the dependency parses of the same two sentences
35- dep_parsed_sent = depparser .dep_parse_sentence ("I am going to the market." )
34+ # get the dependency parse of an already tagged sentence
35+ dep_parsed_sent = depparser .dep_parse_tagged_sentence ("I/PRP am/VBP going/VBG to/TO the/DT market/NN ./ ." )
3636 print_ (dep_parsed_sent )
3737
38+ # get the dependency parse of an already tokenized sentence
3839 dep_parsed_sent = depparser .dep_parse_sentence ("Do n't you want to come with me to the market ?" , tokenize = False )
3940 print_ (dep_parsed_sent )
4041
You can’t perform that action at this time.
0 commit comments