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

Update preprocessing #40

Merged
merged 1 commit into from
Dec 17, 2021
Merged

Update preprocessing #40

merged 1 commit into from
Dec 17, 2021

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']

@gistarrr
Copy link
Contributor

확인했습니다~ Merge 진행하겠습니다.

@gistarrr gistarrr merged commit 39d22f9 into dev Dec 17, 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.

2 participants