We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Below is an organization of existing customized functionalities of ExplainaBoard SDK. Something could be discussed:
loader = get_loader_class(TaskType.text_classification)( load_file_as_str(self.tsv_dataset), load_file_as_str(self.txt_output), Source.in_memory, Source.in_memory, FileType.tsv, FileType.text, )
system_output
{ "metadata": { "custom_features": { "rel_type": { "dtype": "string", "description": "symmetric or asymmetric", "num_buckets": 2 } } }, "examples": [ { "gold_head": "/m/08966", "gold_predicate": "/travel/travel_destination/climate./travel/travel_destination_monthly_climate/month", "gold_tail": "/m/05lf_", "predict": "tail", "predictions": [ "/m/05lf_", "/m/02x_y", "/m/01nv4h", "/m/02l6h", "/m/0kz1h" ], "rel_type": "asymmetric", "example_id": "1" }, ...
{ "sst2": { "custom_features": { "example": { "label": { "dtype": "string", "description": "the true label" } } }, ... }
{ "sst2": { "label": { "dtype": "string", "description": "the true label", "num_buckets": 2 }, "text_len": { "dtype": "float", "description": "text length", "num_buckets": 4, "func": "lambda x:len(x['text'].split())" }, "long_text": { "dtype": "string", "description": "whether a text is long", "num_buckets": 2, "func": "lambda x:'Long Text' if len(x['text'].split()) > 20 else 'Short Text'" } ... }
The text was updated successfully, but these errors were encountered:
Thanks @pfliu-nlp ! I created a design doc outlining some of the user stories we need to consider and some design options, let's discuss: https://docs.google.com/document/d/1lX74OrTWEjQT3A6RSandRMNKVjvfaqu-ZVl68sj17oE/edit#heading=h.j0odx9syhan
Sorry, something went wrong.
No branches or pull requests
Below is an organization of existing customized functionalities of ExplainaBoard SDK.
Something could be discussed:
1. Customized Dataset
2. Customized features through
system_output
file3. Customized features through an additional config file
4. Customized feature function through an additional config file
The text was updated successfully, but these errors were encountered: