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

[WIP] OWSentimentAnalysis: Add new languages #462

Merged
merged 2 commits into from
Nov 20, 2019

Conversation

ajdapretnar
Copy link
Collaborator

@ajdapretnar ajdapretnar commented Oct 8, 2019

Issue

Implements #306.

Description of changes

Add additional languages for sentiment analysis.

Includes
  • Code changes
  • Tests
  • Documentation
Todo
  • Ensure widget doesn't crash when offline
  • Update combobox when offline

@ajdapretnar
Copy link
Collaborator Author

The test passes locally. 🤷‍♀

@ajdapretnar ajdapretnar requested a review from robertcv October 10, 2019 11:39
self.liu_hu = gui.appendRadioButton(box, "Liu Hu", addToLayout=False)
self.liu_lang = gui.comboBox(None, self, 'language',
self.liu_lang = gui.comboBox(None, self, 'liu_language',
Copy link
Collaborator

Choose a reason for hiding this comment

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

Use contentsLength parameter for bouth gui.comboBox so that they are of equal length.

self.send_signal("Corpus", self.corpus)

def test_output(self):
"Test if new column on the output"
Copy link
Collaborator

Choose a reason for hiding this comment

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

You will probably add some testing?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ooops. 🙈

@ajdapretnar
Copy link
Collaborator Author

@robertcv Fixed. Tests still don't pass. Well, they sometimes do and sometimes don't. 🤷‍♀

@robertcv
Copy link
Collaborator

@ajdapretnar I cannot find a solution for this falling test. I would suggest to remove it or add the skip decorator. I wouldn't like to merge something that will constantly faile.

@codecov-io
Copy link

codecov-io commented Nov 20, 2019

Codecov Report

Merging #462 into master will increase coverage by 0.03%.
The diff coverage is 88.76%.

@@            Coverage Diff            @@
##           master    #462      +/-   ##
=========================================
+ Coverage   85.57%   85.6%   +0.03%     
=========================================
  Files          34      34              
  Lines        1927    2001      +74     
  Branches      329     336       +7     
=========================================
+ Hits         1649    1713      +64     
- Misses        238     248      +10     
  Partials       40      40

@robertcv robertcv merged commit fa2a8c8 into biolab:master Nov 20, 2019
@ajdapretnar ajdapretnar deleted the sentiment-langs branch January 21, 2021 12:56
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.

3 participants