Re-organized reconciliation menu commands similar to James' suggestions.
git-svn-id: http://google-refine.googlecode.com/svn/trunk@550 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
parent
53d7bd3287
commit
02536a625e
@ -371,162 +371,167 @@ DataTableColumnHeaderUI.prototype._createMenuForColumnHeader = function(elmt) {
|
|||||||
},
|
},
|
||||||
{},
|
{},
|
||||||
{
|
{
|
||||||
label: "Match Each Cell to Its Best Candidate",
|
label: "Facets",
|
||||||
tooltip: "Match each cell to its best candidate in this column for all current filtered rows",
|
submenu: [
|
||||||
click: function() {
|
{
|
||||||
self._doReconMatchBestCandidates();
|
label: "By Judgment",
|
||||||
}
|
click: function() {
|
||||||
},
|
ui.browsingEngine.addFacet(
|
||||||
{
|
"list",
|
||||||
label: "Create a New Topic for Each Cell",
|
{
|
||||||
tooltip: "Mark to create one new topic for each cell in this column for all current filtered rows",
|
"name" : self._column.name,
|
||||||
click: function() {
|
"columnName" : self._column.name,
|
||||||
self._doReconMarkNewTopics(false);
|
"expression" : "cell.recon.judgment",
|
||||||
}
|
"omitError" : true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "Create One New Topic for Similar Cells",
|
"scroll" : false
|
||||||
tooltip: "Mark to create one new topic for each group of similar cells in this column for all current filtered rows",
|
}
|
||||||
click: function() {
|
);
|
||||||
self._doReconMarkNewTopics(true);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: "Discard Reconciliation Judgments",
|
|
||||||
tooltip: "Discard reconciliaton results in this column for all current filtered rows",
|
|
||||||
click: function() {
|
|
||||||
self._doReconDiscardJudgments();
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{},
|
|
||||||
{
|
|
||||||
label: "Match Filtered Cells to ...",
|
|
||||||
tooltip: "Search for a topic to match all filtered cells to",
|
|
||||||
click: function() {
|
|
||||||
self._doSearchToMatch();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: "Reconcile Filter",
|
|
||||||
tooltip: "Match this column's cells to topics on Freebase",
|
|
||||||
submenu: [
|
|
||||||
{
|
|
||||||
label: "By Judgment",
|
|
||||||
click: function() {
|
|
||||||
ui.browsingEngine.addFacet(
|
|
||||||
"list",
|
|
||||||
{
|
|
||||||
"name" : self._column.name,
|
|
||||||
"columnName" : self._column.name,
|
|
||||||
"expression" : "cell.recon.judgment",
|
|
||||||
"omitError" : true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"scroll" : false
|
|
||||||
}
|
}
|
||||||
);
|
},
|
||||||
}
|
{},
|
||||||
},
|
{
|
||||||
{},
|
label: "Best Candidate's Relevance Score",
|
||||||
{
|
click: function() {
|
||||||
label: "Best Candidate's Relevance Score",
|
ui.browsingEngine.addFacet(
|
||||||
click: function() {
|
"range",
|
||||||
ui.browsingEngine.addFacet(
|
{
|
||||||
"range",
|
"name" : self._column.name,
|
||||||
{
|
"columnName" : self._column.name,
|
||||||
"name" : self._column.name,
|
"expression" : "cell.recon.best.score",
|
||||||
"columnName" : self._column.name,
|
"mode" : "range"
|
||||||
"expression" : "cell.recon.best.score",
|
},
|
||||||
"mode" : "range"
|
{
|
||||||
},
|
}
|
||||||
{
|
);
|
||||||
}
|
}
|
||||||
);
|
},
|
||||||
}
|
{
|
||||||
|
label: "Best Candidate's Type Match",
|
||||||
|
click: function() {
|
||||||
|
ui.browsingEngine.addFacet(
|
||||||
|
"list",
|
||||||
|
{
|
||||||
|
"name" : self._column.name,
|
||||||
|
"columnName" : self._column.name,
|
||||||
|
"expression" : "cell.recon.features.typeMatch",
|
||||||
|
"omitError" : true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"scroll" : false
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Best Candidate's Name Match",
|
||||||
|
click: function() {
|
||||||
|
ui.browsingEngine.addFacet(
|
||||||
|
"list",
|
||||||
|
{
|
||||||
|
"name" : self._column.name,
|
||||||
|
"columnName" : self._column.name,
|
||||||
|
"expression" : "cell.recon.features.nameMatch",
|
||||||
|
"omitError" : true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"scroll" : false
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{},
|
||||||
|
{
|
||||||
|
label: "Best Candidate's Name Edit Distance",
|
||||||
|
click: function() {
|
||||||
|
ui.browsingEngine.addFacet(
|
||||||
|
"range",
|
||||||
|
{
|
||||||
|
"name" : self._column.name,
|
||||||
|
"columnName" : self._column.name,
|
||||||
|
"expression" : "cell.recon.features.nameLevenshtein",
|
||||||
|
"mode" : "range"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Best Candidate's Name Word Similarity",
|
||||||
|
click: function() {
|
||||||
|
ui.browsingEngine.addFacet(
|
||||||
|
"range",
|
||||||
|
{
|
||||||
|
"name" : self._column.name,
|
||||||
|
"columnName" : self._column.name,
|
||||||
|
"expression" : "cell.recon.features.nameWordDistance",
|
||||||
|
"mode" : "range"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{},
|
||||||
|
{
|
||||||
|
label: "Best Candidate's Types",
|
||||||
|
click: function() {
|
||||||
|
ui.browsingEngine.addFacet(
|
||||||
|
"list",
|
||||||
|
{
|
||||||
|
"name" : self._column.name,
|
||||||
|
"columnName" : self._column.name,
|
||||||
|
"expression" : "cell.recon.best.type",
|
||||||
|
"omitError" : true
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "Best Candidate's Type Match",
|
label: "Actions",
|
||||||
click: function() {
|
submenu: [
|
||||||
ui.browsingEngine.addFacet(
|
{
|
||||||
"list",
|
label: "Match Each Cell to Its Best Candidate",
|
||||||
{
|
tooltip: "Match each cell to its best candidate in this column for all current filtered rows",
|
||||||
"name" : self._column.name,
|
click: function() {
|
||||||
"columnName" : self._column.name,
|
self._doReconMatchBestCandidates();
|
||||||
"expression" : "cell.recon.features.typeMatch",
|
|
||||||
"omitError" : true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"scroll" : false
|
|
||||||
}
|
}
|
||||||
);
|
},
|
||||||
}
|
{
|
||||||
},
|
label: "Create a New Topic for Each Cell",
|
||||||
{
|
tooltip: "Mark to create one new topic for each cell in this column for all current filtered rows",
|
||||||
label: "Best Candidate's Name Match",
|
click: function() {
|
||||||
click: function() {
|
self._doReconMarkNewTopics(false);
|
||||||
ui.browsingEngine.addFacet(
|
|
||||||
"list",
|
|
||||||
{
|
|
||||||
"name" : self._column.name,
|
|
||||||
"columnName" : self._column.name,
|
|
||||||
"expression" : "cell.recon.features.nameMatch",
|
|
||||||
"omitError" : true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"scroll" : false
|
|
||||||
}
|
}
|
||||||
);
|
},
|
||||||
}
|
{},
|
||||||
},
|
{
|
||||||
{},
|
label: "Create One New Topic for Similar Cells",
|
||||||
{
|
tooltip: "Mark to create one new topic for each group of similar cells in this column for all current filtered rows",
|
||||||
label: "Best Candidate's Name Edit Distance",
|
click: function() {
|
||||||
click: function() {
|
self._doReconMarkNewTopics(true);
|
||||||
ui.browsingEngine.addFacet(
|
|
||||||
"range",
|
|
||||||
{
|
|
||||||
"name" : self._column.name,
|
|
||||||
"columnName" : self._column.name,
|
|
||||||
"expression" : "cell.recon.features.nameLevenshtein",
|
|
||||||
"mode" : "range"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
}
|
}
|
||||||
);
|
},
|
||||||
}
|
{
|
||||||
},
|
label: "Match All Filtered Cells to ...",
|
||||||
{
|
tooltip: "Search for a topic to match all filtered cells to",
|
||||||
label: "Best Candidate's Name Word Similarity",
|
click: function() {
|
||||||
click: function() {
|
self._doSearchToMatch();
|
||||||
ui.browsingEngine.addFacet(
|
|
||||||
"range",
|
|
||||||
{
|
|
||||||
"name" : self._column.name,
|
|
||||||
"columnName" : self._column.name,
|
|
||||||
"expression" : "cell.recon.features.nameWordDistance",
|
|
||||||
"mode" : "range"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
}
|
}
|
||||||
);
|
},
|
||||||
}
|
{},
|
||||||
},
|
{
|
||||||
{},
|
label: "Discard Reconciliation Judgments",
|
||||||
{
|
tooltip: "Discard reconciliaton judgments in this column for all current filtered rows",
|
||||||
label: "Best Candidate's Types",
|
click: function() {
|
||||||
click: function() {
|
self._doReconDiscardJudgments();
|
||||||
ui.browsingEngine.addFacet(
|
|
||||||
"list",
|
|
||||||
{
|
|
||||||
"name" : self._column.name,
|
|
||||||
"columnName" : self._column.name,
|
|
||||||
"expression" : "cell.recon.best.type",
|
|
||||||
"omitError" : true
|
|
||||||
}
|
}
|
||||||
);
|
}
|
||||||
}
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user