Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
lm-evaluation-harness
Commits
1e5d55d9
Commit
1e5d55d9
authored
Dec 02, 2022
by
jon-tow
Browse files
Remove redefinition of `jieba`
parent
0699d774
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
lm_eval/tasks/translation.py
lm_eval/tasks/translation.py
+0
-2
No files found.
lm_eval/tasks/translation.py
View file @
1e5d55d9
...
@@ -77,8 +77,6 @@ def create_tasks_from_benchmarks(benchmark_dict):
...
@@ -77,8 +77,6 @@ def create_tasks_from_benchmarks(benchmark_dict):
def
zh_split
(
zh_text
:
List
[
str
])
->
List
[
str
]:
def
zh_split
(
zh_text
:
List
[
str
])
->
List
[
str
]:
"""Chinese splitting"""
"""Chinese splitting"""
import
jieba
if
not
HAS_JIEBA
:
if
not
HAS_JIEBA
:
raise
ImportError
(
raise
ImportError
(
"Chinese text splitting requires the `jieba` package. "
"Chinese text splitting requires the `jieba` package. "
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment