Skip to content
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

Mutox classifier #44

Merged
merged 11 commits into from
Dec 4, 2024
Merged

Conversation

David-OC17
Copy link
Contributor

Elements to include in PR

  • Migrate Mutox code from Seamless Communication
  • Add unit tests for the pipeline
  • (Optional) add softmax computation on top of classifier

Note: A follow-up PR will be needed in the Seamless Communication repository to account for the migration being made here.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 26, 2024
mutox/__init__.py Outdated Show resolved Hide resolved
mutox/speech_pipeline.py Outdated Show resolved Hide resolved
pyproject.toml Outdated Show resolved Hide resolved
mutox/cli/README.md Outdated Show resolved Hide resolved
mutox/cli/README.md Outdated Show resolved Hide resolved
@David-OC17 David-OC17 requested a review from avidale October 29, 2024 02:00
sonar/models/mutox/classifier.py Outdated Show resolved Hide resolved
sonar/inference_pipelines/mutox_speech.py Outdated Show resolved Hide resolved
sonar/inference_pipelines/mutox_speech.py Outdated Show resolved Hide resolved
README.md Show resolved Hide resolved
README.md Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
examples/mutox_example.ipynb Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
sonar/cards/sonar_mutox.yaml Show resolved Hide resolved
sonar/models/mutox/classifier.py Outdated Show resolved Hide resolved
sonar/inference_pipelines/mutox_speech.py Outdated Show resolved Hide resolved
sonar/models/mutox/classifier.py Outdated Show resolved Hide resolved
tests/unit_tests/test_mutox.py Show resolved Hide resolved
@avidale avidale marked this pull request as ready for review November 21, 2024 09:12
Copy link
Contributor

@avidale avidale left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!
Let's fix the rest of the mypy tests and maybe come up with an example of a more toxic sentence, and we are done.

tests/integration_tests/test_mutox.py Show resolved Hide resolved
tests/unit_tests/test_mutox.py Show resolved Hide resolved
@David-OC17
Copy link
Contributor Author

Got it down to that one mypy error, cannot solve it still.

@avidale
Copy link
Contributor

avidale commented Nov 25, 2024

Got it down to that one mypy error, cannot solve it still.

If you absolutely cannot, I think, it is fine to tell Mypy just to ignore this error (by adding a comment # type: ignore on the corresponding line).

@avidale avidale merged commit a914bbd into facebookresearch:main Dec 4, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants