-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding fuzzy and semantic dedupe (#428)
Signed-off-by: Rucha Apte <[email protected]>
- Loading branch information
1 parent
079d46f
commit 3c3cc98
Showing
5 changed files
with
185 additions
and
23 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
28 changes: 28 additions & 0 deletions
28
tutorials/dapt-curation/code/configs/text_semantic_dedupe_config.yaml
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,28 @@ | ||
# Configuration file for semdantic dedup | ||
cache_dir: "workspace/semdedup_cache/text" | ||
num_files: 16 | ||
|
||
# Embeddings configuration | ||
embeddings_save_loc: "embeddings" | ||
embedding_model_name_or_path: "sentence-transformers/all-MiniLM-L6-v2" | ||
embedding_batch_size: 128 | ||
|
||
# Clustering configuration | ||
clustering_save_loc: "clustering_results" | ||
n_clusters: 20 | ||
seed: 1234 | ||
max_iter: 100 | ||
kmeans_with_cos_dist: false | ||
|
||
# Semdedup configuration | ||
which_to_keep: "hard" | ||
largest_cluster_size_to_process: 100000 | ||
sim_metric: "cosine" | ||
|
||
# Extract dedup configuration | ||
eps_thresholds: | ||
- 0.1 | ||
- 0.01 | ||
|
||
# Which threshold to use for extracting deduped data | ||
eps_to_extract: 0.1 |
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
arxiv | ||
arxiv==2.1.0 | ||
arxiv-downloader | ||
cchardet | ||
nltk==3.8.1 | ||
poppler-utils | ||
unstructured[all-docs]==0.14.5 | ||
unstructured[pdf] |
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