-
Notifications
You must be signed in to change notification settings - Fork 0
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
added article topic #12
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.
Before you approve can you tell me why "from .liftwing_model import LiftwingModel, ModelMetadata" doesn't work on my machine?
In order for me to help with the above you'll have to provide more information on the error message etc.
liftwing/models/article_topic.py
Outdated
lang: str = Field(..., | ||
title="Language code of the wiki", | ||
description='A string representing the language code related to the target ' | ||
'wiki. Example: "en" for English Wikipedia.',) | ||
rev_id: int = Field(..., | ||
title="Revision ID of the edit", | ||
description="The revision id for the wiki identified by the lang parameter.", | ||
gt=0) |
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.
These are not the correct parameters. Please visit the API docs page for more info.
liftwing/models/article_topic.py
Outdated
api_documentation_url="https://api.wikimedia.org/service/lw/inference/v1/models/outlink-topic-model:predict", | ||
wmf_model_card_url="https://meta.wikimedia.org/wiki/Machine_learning_models/Proposed/Multilingual_readability_model_card" |
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.
Please update with the proper urls.
The model card is here
Covered by #13 |
this is a sample pull request before I make pull request for the rest. Before you approve can you tell me why "from .liftwing_model import LiftwingModel, ModelMetadata" doesn't work on my machine?