-
Notifications
You must be signed in to change notification settings - Fork 124
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 #147 from navinrathore/zFindLabeller
Introduced new phase findLabel
- Loading branch information
Showing
6 changed files
with
52 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -229,7 +229,7 @@ public final static String getHelp() { | |
s.append("zingg.sh --phase findTrainingData --conf config.json --zinggDir /location \n"); | ||
s.append("zingg.sh --phase label --conf config.json --zinggDir /location \n"); | ||
s.append("zingg.sh --phase trainMatch --conf config.json --email [email protected]\n"); | ||
|
||
s.append("zingg.sh --phase findAndLabel --conf config.json --zinggDir /location\n"); | ||
s.append("options\n"); | ||
for (Option o: optionMaster.values()) { | ||
s.append("\t " + o.optionName + ":\t\t" + o.desc + "\n"); | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package zingg; | ||
|
||
import org.apache.commons.logging.Log; | ||
import org.apache.commons.logging.LogFactory; | ||
|
||
import zingg.client.Arguments; | ||
import zingg.client.ZinggClientException; | ||
import zingg.client.ZinggOptions; | ||
|
||
public class FindAndLabeller extends Labeller { | ||
protected static String name = "zingg.FindAndLabeller"; | ||
public static final Log LOG = LogFactory.getLog(FindAndLabeller.class); | ||
|
||
private TrainingDataFinder finder; | ||
|
||
public FindAndLabeller() { | ||
setZinggOptions(ZinggOptions.FIND_AND_LABEL); | ||
finder = new TrainingDataFinder(); | ||
} | ||
|
||
@Override | ||
public void init(Arguments args, String license) | ||
throws ZinggClientException { | ||
super.init(args, license); | ||
finder.copyContext(this); | ||
} | ||
|
||
@Override | ||
public void execute() throws ZinggClientException { | ||
finder.execute(); | ||
super.execute(); | ||
} | ||
} |
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
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,14 @@ | ||
--- | ||
layout: default | ||
parent: Creating training data | ||
title: Find training data and labelling | ||
grand_parent: Step By Step Guide | ||
nav_order: 2 | ||
--- | ||
## Find training data and labelling them | ||
|
||
This phase is composed of two phases namely [findTrainingData](./findTrainingData.md) and [label](./label.md). This will help experienced users to quicken the process of creating Training data. | ||
|
||
`./zingg.sh --phase findAndLabel --conf config.json` | ||
|
||
It's note that this option is good for small datasets else if your findTrainingData takes a long time, the user will have to wait for the console for labelling. For details, refer to the individual phases: [findTrainingData](./findTrainingData.md) and [label](./label.md) |