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

Support for UD_OLD_FRENCH added #1964

Merged
merged 5 commits into from
Nov 12, 2020
Merged

Support for UD_OLD_FRENCH added #1964

merged 5 commits into from
Nov 12, 2020

Conversation

Weyaaron
Copy link
Collaborator

I'm not sure if additional formating is needed, this loads the corpus without additional reformatings of the source files.

Copy link
Collaborator

@alanakbik alanakbik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code does not run. If I do:

# load corpus (throws error)
corpus = UD_OLD_FRENCH()

# print corpus
print(corpus)

# print some sentences in corpus
print(corpus.train[1])
print(corpus.dev[1])
print(corpus.test[1])

# print UPOS tags
dictionary = corpus.make_tag_dictionary('upos')
print(dictionary)

It throws an error. Please check if the code runs locally before doing a PR!

data_folder = base_path / dataset_name

# download data if necessary
web_path = "https://github.com/UniversalDependencies/UD_Old_French-SRCMF/tree/master"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does not download the correct file. Please check the downloaded file if it looks correct.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The urls are fixed with the new commits added.

@alanakbik
Copy link
Collaborator

@Weyaaron thanks for adding this!

@alanakbik alanakbik merged commit f966791 into flairNLP:master Nov 12, 2020
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