-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'File partition' option and 'document' directory specification #213
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, likely worth a test given the destructive nature of the bug you found.
src/deduper.rs
Outdated
docs_location.replace( | ||
&format!( | ||
"/{}/", | ||
dedupe_config | ||
.document_dir | ||
.unwrap_or(String::from("documents")) | ||
), | ||
&attr_prefix, | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we add a test for this?
pyproject.toml
Outdated
@@ -1,6 +1,6 @@ | |||
[project] | |||
name = "dolma" | |||
version = "1.0.14.post1" | |||
version = "1.0.14.dev6" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's update the version and drop devN
pyproject.toml
Outdated
@@ -1,6 +1,6 @@ | |||
[project] | |||
name = "dolma" | |||
version = "1.0.14.dev6" | |||
version = "1.0.5" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You want 1.0.15
right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No actually, when I started making dev branches I misread the version. The most recent not dev is 1.0.4
Allows for partitioning work at the file level - checking the hash of the de-globbed file names instead of spans. Also, creates an optional 'document dir' parameter for dealing with source data that doesn't have a 'document' directory to replace with 'attributes' (previously the attribute path generator would try replacing 'documents', not find any, and use the source directory!)