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

Tupelize corpus #32

Merged
merged 6 commits into from
Sep 30, 2024
Merged

Tupelize corpus #32

merged 6 commits into from
Sep 30, 2024

Conversation

f-hafner
Copy link
Collaborator

@f-hafner f-hafner commented Jan 29, 2024

Issue

I separated out the code from

to a separate function that can be reused by other widgets (among others, in #14 )

tests run with

coverage run -m unittest discover orangecontrib/storynavigation

@kodymoodley , if you agree, before merging I'll replace the relevant bit in the line cited above with this function, too.

Description of changes
  • add function to util
  • add simple test data
  • add tests for the function
  • I also fixed an import bug in orangecontrib/storynavigation/widgets/OWSNActorAnalysis.py
Includes
  • Code changes
  • Tests
  • Documentation

@ThijsVroegh
Copy link
Collaborator

Leave this be for the moment.. Related to the setting widget, s odepending on how we are going to develop the widget further, we can later decide on deleting this PR, or not

Copy link
Member

@eriktks eriktks left a comment

Choose a reason for hiding this comment

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

This PR adds a useful function to the code and tests it. It is unfinished: the function is defined but not called. But the code is tested and the test function could be used as a blueprint for the other code.

The code and test work, and the code looks ok.

We do suggest to move the test file and test data to the standard test directory (tests) before merging

@@ -4,6 +4,8 @@
import sre_constants
from typing import Any, Iterable, List, Set
import numpy as np
import pandas as pd
Copy link
Member

Choose a reason for hiding this comment

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

pd is imported but not used

@@ -290,3 +291,18 @@ def find_verb_ancestor(token):

# If no verb ancestor found, return None
return None

def tupelize_corpus(corpus: Corpus):
Copy link
Member

Choose a reason for hiding this comment

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

tupelize_corpus is defined but not used

@eriktks eriktks added the enhancement New feature or request label Sep 30, 2024
@eriktks eriktks marked this pull request as ready for review September 30, 2024 09:32
@eriktks eriktks mentioned this pull request Sep 30, 2024
3 tasks
@eriktks eriktks merged commit 41a86f8 into master Sep 30, 2024
1 of 4 checks passed
@eriktks eriktks deleted the tupelize_corpus branch September 30, 2024 14:47
@eriktks
Copy link
Member

eriktks commented Sep 30, 2024

This PR was included in PR #110 and was closed when that PR was merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants