Skip to content
This repository was archived by the owner on Nov 1, 2024. It is now read-only.
This repository was archived by the owner on Nov 1, 2024. It is now read-only.

Why Truncate Test and Validation Data #44

@carlguo866

Description

@carlguo866

Hi, I'm just wondering why we want to truncate the test and validation data to the length of the shortest possible line. It seems like this would result in translation of incomplete code?

for split in ['test', 'valid']:
for f_type in ['functions_standalone', 'functions_class']:
truncate_files(l.folder.joinpath(
f'{split}{self.suffix}.{f_type}.tok') for l in self.langs)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions