-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #336 from korpling/fix/enumerate-proper-retrieval-…
…using-cs Fix/enumerate proper retrieval using cs
- Loading branch information
Showing
4 changed files
with
201 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
src/manipulator/snapshots/annatto__manipulator__enumerate__tests__enumerate_bare.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
--- | ||
source: src/manipulator/enumerate.rs | ||
expression: actual.unwrap() | ||
--- | ||
---- corpus.graphml: | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<graphml> | ||
<key id="k0" for="graph" attr.name="configuration" attr.type="string"/> | ||
<key id="k1" for="node" attr.name="count::i" attr.type="string"/> | ||
<key id="k2" for="node" attr.name="annis::node_type" attr.type="string"/> | ||
<key id="k3" for="node" attr.name="sentiment" attr.type="string"/> | ||
<graph edgedefault="directed" parse.order="nodesfirst" parse.nodeids="free" parse.edgeids="canonical"> | ||
<data key="k0"><![CDATA[ | ||
# configure visualizations here | ||
]]></data> | ||
<node id="corpus"> | ||
<data key="k2">corpus</data> | ||
</node> | ||
<node id="corpus/document"> | ||
<data key="k2">corpus</data> | ||
</node> | ||
<node id="corpus/document#t1"> | ||
<data key="k1">1</data> | ||
<data key="k2">node</data> | ||
<data key="k3">positive</data> | ||
</node> | ||
<node id="corpus/document#t2"> | ||
<data key="k1">2</data> | ||
<data key="k2">node</data> | ||
<data key="k3">negative</data> | ||
</node> | ||
<node id="corpus/document#t3"> | ||
<data key="k1">3</data> | ||
<data key="k2">node</data> | ||
<data key="k3">neutral</data> | ||
</node> | ||
<edge id="e0" source="corpus/document#t1" target="corpus/document#t2" label="Ordering/annis/"> | ||
</edge> | ||
<edge id="e1" source="corpus/document#t2" target="corpus/document#t3" label="Ordering/annis/"> | ||
</edge> | ||
<edge id="e2" source="corpus/document" target="corpus" label="PartOf/annis/"> | ||
</edge> | ||
<edge id="e3" source="corpus/document#t1" target="corpus/document" label="PartOf/annis/"> | ||
</edge> | ||
<edge id="e4" source="corpus/document#t2" target="corpus/document" label="PartOf/annis/"> | ||
</edge> | ||
<edge id="e5" source="corpus/document#t3" target="corpus/document" label="PartOf/annis/"> | ||
</edge> | ||
</graph> | ||
</graphml> |
50 changes: 50 additions & 0 deletions
50
src/manipulator/snapshots/annatto__manipulator__enumerate__tests__enumerate_with_value.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
--- | ||
source: src/manipulator/enumerate.rs | ||
expression: actual.unwrap() | ||
--- | ||
---- corpus.graphml: | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<graphml> | ||
<key id="k0" for="graph" attr.name="configuration" attr.type="string"/> | ||
<key id="k1" for="node" attr.name="count::i" attr.type="string"/> | ||
<key id="k2" for="node" attr.name="annis::node_type" attr.type="string"/> | ||
<key id="k3" for="node" attr.name="sentiment" attr.type="string"/> | ||
<graph edgedefault="directed" parse.order="nodesfirst" parse.nodeids="free" parse.edgeids="canonical"> | ||
<data key="k0"><![CDATA[ | ||
# configure visualizations here | ||
]]></data> | ||
<node id="corpus"> | ||
<data key="k2">corpus</data> | ||
</node> | ||
<node id="corpus/document"> | ||
<data key="k2">corpus</data> | ||
</node> | ||
<node id="corpus/document#t1"> | ||
<data key="k1">positive-1</data> | ||
<data key="k2">node</data> | ||
<data key="k3">positive</data> | ||
</node> | ||
<node id="corpus/document#t2"> | ||
<data key="k1">negative-2</data> | ||
<data key="k2">node</data> | ||
<data key="k3">negative</data> | ||
</node> | ||
<node id="corpus/document#t3"> | ||
<data key="k1">neutral-3</data> | ||
<data key="k2">node</data> | ||
<data key="k3">neutral</data> | ||
</node> | ||
<edge id="e0" source="corpus/document#t1" target="corpus/document#t2" label="Ordering/annis/"> | ||
</edge> | ||
<edge id="e1" source="corpus/document#t2" target="corpus/document#t3" label="Ordering/annis/"> | ||
</edge> | ||
<edge id="e2" source="corpus/document" target="corpus" label="PartOf/annis/"> | ||
</edge> | ||
<edge id="e3" source="corpus/document#t1" target="corpus/document" label="PartOf/annis/"> | ||
</edge> | ||
<edge id="e4" source="corpus/document#t2" target="corpus/document" label="PartOf/annis/"> | ||
</edge> | ||
<edge id="e5" source="corpus/document#t3" target="corpus/document" label="PartOf/annis/"> | ||
</edge> | ||
</graph> | ||
</graphml> |