freemt commited on
Commit
d835db2
1 Parent(s): 06e32d2

Update pyc

Browse files
radiobee/align_sents.pyc CHANGED
Binary files a/radiobee/align_sents.pyc and b/radiobee/align_sents.pyc differ
 
radiobee/loadtext.py CHANGED
@@ -35,7 +35,7 @@ def loadtext(filepath: Union[Path, str] = "") -> str:
35
  if not filepath.is_file():
36
  logger.error(" file [%s] does not exist or is not a file.", filepath)
37
  # return None
38
- raise Exception(" file [{filepath}] does not exist or is not a file.")
39
 
40
  # encoding = detect_file(filepath)
41
  encoding = cchardet.detect(filepath.read_bytes()).get("encoding", "utf8")
 
35
  if not filepath.is_file():
36
  logger.error(" file [%s] does not exist or is not a file.", filepath)
37
  # return None
38
+ raise Exception(f" file [{filepath}] does not exist or is not a file.")
39
 
40
  # encoding = detect_file(filepath)
41
  encoding = cchardet.detect(filepath.read_bytes()).get("encoding", "utf8")
radiobee/paras2sents.pyc CHANGED
Binary files a/radiobee/paras2sents.pyc and b/radiobee/paras2sents.pyc differ
 
radiobee/shuffle_sents.pyc CHANGED
Binary files a/radiobee/shuffle_sents.pyc and b/radiobee/shuffle_sents.pyc differ
 
tests/test_paras2sents.py CHANGED
@@ -11,7 +11,7 @@ paras = pd.read_excel(file_loc, header=0)
11
  paras = paras[["text1", "text2", "likelihood"]].fillna("")
12
 
13
 
14
- def test_paras2sents_dual():
15
  """Test paras2sents_dual."""
16
  sents = paras2sents(paras)
17
 
@@ -21,7 +21,7 @@ def test_paras2sents_dual():
21
  # assert not sents
22
 
23
 
24
- def test_paras2sents_dual_model_s():
25
  """Test paras2sents_dual_model_s."""
26
  sents1 = paras2sents(paras, shuffle_sents)
27
 
 
11
  paras = paras[["text1", "text2", "likelihood"]].fillna("")
12
 
13
 
14
+ def test_paras2sents_dual_fast():
15
  """Test paras2sents_dual."""
16
  sents = paras2sents(paras)
17
 
 
21
  # assert not sents
22
 
23
 
24
+ def test_paras2sents_dual_slow():
25
  """Test paras2sents_dual_model_s."""
26
  sents1 = paras2sents(paras, shuffle_sents)
27