Description
Return to Download
Dependency Viewer is developed to visualize the dependency parsing result in CONLL format. It can be used to:
Visualize dependency sentence in horizontal view or tree view
Edit the dependency file
Export the view to image in PNG/XPS and even EMF(vector image) format
Show two results at the same time for comparation
Advanced search function
Statistic and evaluation
The tool is very easy to use while it's a little hard to use the advanced search function. The following will describe the search function in detail.
Definition of Search
The search function can be described in the following grammar.
Matcher=CountMatcher OR_Matcher
CountMatcher=SentenceLengthMatcher:LabeledErrorCountMatcher:UnlabeledErrorCountMatcher
SentenceLengthMatcher={MinValue,MaxValue}
SentenceLengthMatcher={,MaxValue}
SentenceLengthMatcher={MinValue,}
SentenceLengthMatcher={ExactValue}
SentenceLengthMatcher=NULL
LabeledErrorCountMatcher=SentenceLengthMatcher
UnlabeledErrorCountMatcher=SentenceLengthMatcher
OR_Matcher=OR_Matcher || OR_Matcher
OR_Matcher=NULL
OR_Matcher=AND_Matcher
AND_Matcher=AND_Matcher && AND_Matcher
AND_Matcher=NULL
AND_Matcher=SequenceMatcher
SequenceMatcher=DependencyMatcher SequenceMatcher
SequenceMatcher=NULL
DependencyMatcher=WordMatcher->DependencyMatcher
DependencyMatcher=NULL
WordMatcher=WordFormMatcherWordPosTagMatcherPositionMatcherDependencyLabelMatcher
WordMatcher=WordFormMatcherWordPosTagMatcherPositionMatcherDependencyLabelMatcher#WordFormMatcherWordPosTagMatcherPositionMatcherDependencyLabelMatcher
WordFormMatcher=Regex Matcher for Word's Form
WordFormMatcher=NULL
WordPosTagMatcher=[Regex Matcher for Word's PosTag]
WordPosTagMatcher=NULL
DependencyLabelMatcher=[Regex Matcher for Word's Dependency Label]
DependencyLabelMatcher=NULL
PositionMatcher=(Min Position,Max Position)
PositionMatcher=(,Max Position)
PositionMatcher=(Min Position,)
PositionMatcher=(Exactly Position)
PositionMatcher=NULL
Position=AbsolutePosition
Position=RelativePosition
AbsolutePosition=number
RelativePosition=.number
Examples of Search
Search: "投资" one after "外商" ("外商 投资")
Search In Dependency File: 外商 投资
Search: sentence contains "外商" and "青海"
Search In Dependency File: 外商 && 青海
Search: sentence contains "外商" or "青海"
Search In Dependency File: 外商 || 青海
Search: sentence contains "外商" or "青海" with length between 2 to 8
Search In Dependency File: {2,8}:: 外商 || 青海
Search: sentences whoes length is equal to or longer than 5
Search In Dependency File: {5,}::
Search: sentences whoes length is 5
Search In Dependency File: {5}::
Search: sentences whoes length is equal to or smaller than 10
Search In Dependency File: {,10}::
Search: contains "外商" and its PosTag is "NN"
Search In Dependency File: 外商[NN]
Search: contains "外商" and its dependency label is "agent"
Search In Dependency File: 外商<agent>
Search: contains "外商" and its position in sentence is between 2 and 8
Search In Dependency File: 外商(2,8)
Search: "外商" is dependent to "投资" and "投资" is dependent to "热点"
Search In Dependency File: 外商->投资->热点
Search: "外商" is dependent to "投资" whoes PosTag is "VV" and "投资" is dependent to "热点" which is three after "投资"
Search In Dependency File: 外商->投资[VV]->热点(.3)
Search: sentences whoes length is between 2 to 10 with labeled error count from 3 to 8 and unlabeled error count from 2 to 4
Search In Dependency File: {2,10}:{3,8}:{2,4}
Search: "外商" is dependent to "投资" with dependency label "agent" and "投资" is dependent to "热点". In the contrast sentence, "外商" is dependent to "成为" with label "gagent", and "投资" is dependent to "新"
Search In Dependency File: 外商<agent>#<gagent>->投资#成为->热点#新
Search: In the contrast sentence, "外商" is dependent to "投资" with dependency label "agent" and "投资" is dependent to "热点". In the original dependency sentence, "外商" is dependent to "成为" with label "gagent", and "投资" is dependent to "新"
Search In Contrast Dependency File: 外商<agent>#<gagent>->投资#成为->热点#新