Skip to content

Commit

Permalink
Use https instead of http for udpipe models
Browse files Browse the repository at this point in the history
  • Loading branch information
PrimozGodec committed May 7, 2020
1 parent 32df64e commit 0626afb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion orangecontrib/text/preprocess/normalize.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def file_to_language(file):


class UDPipeModels:
server_url = "http://file.biolab.si/files/udpipe/"
server_url = "https://file.biolab.si/files/udpipe/"

def __init__(self):
self.local_data = os.path.join(data_dir(versioned=False), 'udpipe/')
Expand Down
6 changes: 5 additions & 1 deletion orangecontrib/text/widgets/owtweetprofiler.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import logging

import numpy as np

from AnyQt.QtWidgets import QApplication, QGridLayout, QLabel, QGroupBox, \
Expand All @@ -16,7 +18,7 @@
def run_profiler(profiler, corpus, meta_var, model_name, output_mode, state):

ticks = iter(np.linspace(0., 100.,
np.ceil(len(corpus) / profiler.BATCH_SIZE)))
int(np.ceil(len(corpus) / profiler.BATCH_SIZE))))

def advance():
if state.is_interruption_requested():
Expand Down Expand Up @@ -169,6 +171,8 @@ def on_partial_result(self, result):
self.cancel()

def on_exception(self, ex):
log = logging.getLogger(__name__)
log.debug("Unexpected error", exc_info=ex)
self.Error.unexpected_error(type(ex).__name__)
self.cancel()

Expand Down

0 comments on commit 0626afb

Please sign in to comment.