Skip to content

Fix installation issues #18

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
recursive-include mxeval/data *.json *.jsonl

3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ Below we demonstrate the language conversion (component A above) for the convers

Check out and install this repository:
```
git clone https://github.com/amazon-science/mxeval.git
pip install -e mxeval
pip install git+https://github.com/amazon-science/mxeval.git
```


Expand Down
6 changes: 3 additions & 3 deletions mxeval/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@


ROOT = os.path.dirname(os.path.abspath(__file__))
MULTILINGUAL_HUMANEVAL_METADATA = os.path.join(ROOT, "..", "data", "multilingual_humaneval", "metadata.json")
MULTILINGUAL_HUMANEVAL_METADATA = os.path.join(ROOT, "data", "multilingual_humaneval", "metadata.json")
with open(MULTILINGUAL_HUMANEVAL_METADATA, "r", encoding="utf-8") as fr:
MULTILINGUAL_HUMANEVAL_METADATA = json.load(fr)
HUMAN_EVAL_PYTHON = os.path.join(ROOT, "..", "data", "multilingual_humaneval", MULTILINGUAL_HUMANEVAL_METADATA["python"])
HUMAN_EVAL_PYTHON = os.path.join(ROOT, "data", "multilingual_humaneval", MULTILINGUAL_HUMANEVAL_METADATA["python"])
HUMAN_EVAL = HUMAN_EVAL_PYTHON


Expand Down Expand Up @@ -61,7 +61,7 @@ def get_metadata(dataset, metadata_type="problem"):
"mathqa-x": "multilingual_mathqa"}
typemap = {"problem": "metadata.json",
"example": "metadata_examples.json"}
datadir = os.path.join(ROOT, "..", "data", dataset_dirmap[dataset])
datadir = os.path.join(ROOT, "data", dataset_dirmap[dataset])
path = os.path.join(datadir, typemap[metadata_type])
with open(path, "r") as f:
metadata = json.load(f)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
description="",
author="AWS AI Labs",
packages=find_packages(),
include_package_data=True,
install_requires=[
str(r)
for r in pkg_resources.parse_requirements(
Expand All @@ -21,7 +22,7 @@
],
entry_points={
"console_scripts": [
"evaluate_functional_correctness = mxeval.evaluate_functional_correctness",
"evaluate_functional_correctness = mxeval:evaluate_functional_correctness",
]
}
)