Remove Stopwords (Optional)
An optional pre-processing step that improves matching accuracy by excluding high-frequency words that carry no matching signal.
Common words like Mr, Pvt, Av, St, Street do not add differential signals and can confuse matching. These are called stopwords. Zingg can recommend which words to treat as stopwords by analyzing your data before training begins.
This step is optional but recommended for address, company name, and location fields where generic terms are common.
Step 1: Generate stopword recommendations
Python
options = ClientOptions([ClientOptions.PHASE, "recommend"])
zingg = Zingg(args, options)
zingg.setColumn("<column_name>")
zingg.initAndExecute()CLI
./scripts/zingg.sh --phase recommend --conf config.json --column <column_name>Step 2: Review the recommendations
By default, Zingg extracts 10% of the high-frequency unique words from your dataset. To change this, set stopWordsCutoff in your config file under the relevant field: "stopWordsCutoff": 0.1.
Step 3: Configure stopwords in your field definition
Once you have verified the stopwords, add the stopWords path to the relevant field in your config. The CSV file must have one word per row and include a header row - Zingg ignores the header by default.
JSON
{
"fieldDefinition": [{
"fieldName": "fname",
"matchType": "fuzzy",
"fields": "fname",
"dataType": "string",
"stopWords": "models/100/stopWords/fname.csv"
}]
}Last updated
Was this helpful?