-
Notifications
You must be signed in to change notification settings - Fork 124
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
first #240
base: main
Are you sure you want to change the base?
first #240
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.
mmmh this is ticky, would be nice to merge changes in soldni/backoff branch before touching linearizers
python/dolma/warc/processor.py
Outdated
@@ -192,12 +194,15 @@ def process_single( | |||
continue | |||
|
|||
# extract text | |||
doc.text = linearizer.linearize(content=decoded_content) | |||
if skip_linearization: |
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.
can we have a no-op linearizer instead of a boolean flag?
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.
Will do
python/dolma/cli/tagger.py
Outdated
@@ -91,6 +91,10 @@ class TaggerConfig: | |||
default=False, | |||
help="If true, only print the configuration and exit without running the taggers.", | |||
) | |||
document_dir: Optional[str] = field( |
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 parametrize attributes too?
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.
We could for the sake of symmetry but it has little utility that I can see
All good, I wasn't planning on pushing this yet, mostly wanted to validate the tests |
No description provided.