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

Exception in context-match #66

Open
saggu opened this issue Aug 4, 2021 · 1 comment
Open

Exception in context-match #66

saggu opened this issue Aug 4, 2021 · 1 comment

Comments

@saggu
Copy link
Member

saggu commented Aug 4, 2021

Command:

tl context-match -o context_score --context-file NGOGV9AO_context.tsv NGOGV9AO.csv > NGOGV9AO_features.csv

Error:

Exception: trying to convert `uirin\\` to float

Issue is because of this line in context file i""hans\|quirin\|kaspar von sack"":P22:Q96242317

Q96242316	"e""I00687306"":P1819|i""anna von taubenheim"":P25:Q96242319|i""boy"":P21:Q6581097|i""boys"":P21:Q6581097|i""georg von sack"":P40:Q96242315|i""guy"":P21:Q6581097|i""hans\|quirin\|kaspar von sack"":P22:Q96242317|i""human male"":P21:Q6581097|i""m"":P21:Q6581097|i""male gender"":P21:Q6581097|i""male human"":P21:Q6581097|i""male person"":P21:Q6581097|i""male"":P21:Q6581097|i""man"":P21:Q6581097|i""masc"":P21:Q6581097|i""men"":P21:Q6581097|i""sterner sex"":P21:Q6581097|i""♂"":P21:Q6581097"

Download the files: issue-66.zip

@HardiRathod
Copy link
Contributor

should be resolved in the latest change.
Used regex split to not split if | is escaped.

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

No branches or pull requests

2 participants