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

Preprocessing #39

Closed
wants to merge 119 commits into from
Closed

Preprocessing #39

wants to merge 119 commits into from

Conversation

sangHa0411
Copy link
Contributor

전처리 Pull Request 합니다.

  1. 적용 과정
    1. train.py
    dataset_name = "metamong1/summarization"
    datasets = load_dataset(dataset_name + "_part" if data_args.is_part else dataset_name,    use_auth_token=USE_AUTH_TOKEN)
    data_preprocessor = Preprocessor()
    data_filter = Filter(min_size=5, max_size=100)

    ## data preprocessing
    datasets = datasets.map(data_preprocessor.for_train)
    datasets = datasets.filter(data_filter)

    train_dataset = datasets['train']
    valid_dataset = datasets['validation']
  1. predict.py
    dataset_name = "metamong1/summarization"
    datasets = load_dataset(dataset_name + "_part" if data_args.is_part else dataset_name, use_auth_token=USE_AUTH_TOKEN)
    data_preprocessor = Preprocessor()
    datasets = datasets.map(data_preprocessor.for_test)
    valid_dataset = datasets['validation']

@sangHa0411 sangHa0411 closed this Dec 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants