Package com.google.refine.model

Examples of com.google.refine.model.ReconCandidate


                        String[] typeIDs = new String[types.length()];
                        for (int j = 0; j < typeIDs.length; j++) {
                            typeIDs[j] = types.getString(j);
                        }

                        ReconCandidate candidate = new ReconCandidate(
                                result.getString("id"),
                                result.getString("name"),
                                typeIDs,
                                100
                        );
View Full Code Here


        }
       
        return new ReconMatchSpecificTopicOperation(
            engineConfig,
            obj.getString("columnName"),
            new ReconCandidate(
                match.getString("id"),
                match.getString("name"),
                typeIDs,
                100
            ),
View Full Code Here

    final protected boolean          _shareNewTopics;

    static public AbstractOperation reconstruct(Project project, JSONObject obj) throws Exception {
        JSONObject engineConfig = obj.getJSONObject("engineConfig");
       
        ReconCandidate match = null;
        if (obj.has("match")) {
            JSONObject matchObj = obj.getJSONObject("match");
           
            JSONArray types = matchObj.getJSONArray("types");
            String[] typeIDs = new String[types.length()];
            for (int i = 0; i < typeIDs.length; i++) {
                typeIDs[i] = types.getString(i);
            }
           
            match = new ReconCandidate(
                matchObj.getString("id"),
                matchObj.getString("name"),
                typeIDs,
                matchObj.getDouble("score")
            );
View Full Code Here

                            recon = reconMap.get(id);
                            recon.judgmentBatchSize++;
                        } else {
                            recon = new Recon(0, null, null);
                            recon.service = "import";
                            recon.match = new ReconCandidate(id, value.toString(), new String[0], 100);
                            recon.matchRank = 0;
                            recon.judgment = Judgment.Matched;
                            recon.judgmentAction = "auto";
                            recon.judgmentBatchSize = 1;
                            recon.addCandidate(recon.match);
View Full Code Here

                int count = Integer.parseInt(value);
               
                for (int i = 0; i < count; i++) {
                    line = reader2.readLine();
                    if (line != null) {
                        ReconCandidate candidate = ReconCandidate.loadStreaming(line);
                        if (candidate != null) {
                            // pool for backward compatibility
                            pool(candidate);
                        }
                    }
View Full Code Here

            @Override
            public boolean visit(Project project, int rowIndex, Row row) {
                if (cellIndex < row.cells.size()) {
                    Cell cell = row.cells.get(cellIndex);
                    if (cell != null && cell.recon != null) {
                        ReconCandidate candidate = cell.recon.getBestCandidate();
                        if (candidate != null) {
                            Recon newRecon;
                            if (dupReconMap.containsKey(cell.recon.id)) {
                                newRecon = dupReconMap.get(cell.recon.id);
                                newRecon.judgmentBatchSize++;
View Full Code Here

TOP

Related Classes of com.google.refine.model.ReconCandidate

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.