This repository has been archived by the owner on Nov 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 801
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: Pull Request resolved: #916 Removing DocClassificationTask_Deprecated and DocModel_Deprecated. They are replaced with DocumentClassificationTask and DocModel, respectively, introduced in v0.2.0 Reviewed By: borguz Differential Revision: D16847219 fbshipit-source-id: 8254806ec708d773acf1aceda3179c7a02ad5b7f
- Loading branch information
1 parent
d2f3d21
commit 34b9714
Showing
15 changed files
with
205 additions
and
617 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -143,4 +143,4 @@ class TestConfig(ConfigBase): | |
test_out_path: str = "" | ||
|
||
|
||
LATEST_VERSION = 16 | ||
LATEST_VERSION = 17 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,154 @@ | ||
[ | ||
{ | ||
"original": { | ||
"task": { | ||
"DocClassificationTask_Deprecated": { | ||
"data_handler": { | ||
"train_path": "tests/data/train_data_tiny.tsv", | ||
"eval_path": "tests/data/test_data_tiny.tsv", | ||
"test_path": "tests/data/test_data_tiny.tsv" | ||
}, | ||
"model": { | ||
"representation": { | ||
"DocNNRepresentation": {} | ||
} | ||
} | ||
} | ||
}, | ||
"version": 16 | ||
}, | ||
"adapted": { | ||
"task": { | ||
"DocumentClassificationTask": { | ||
"data": { | ||
"source": { | ||
"TSVDataSource": { | ||
"eval_filename": "tests/data/test_data_tiny.tsv", | ||
"test_filename": "tests/data/test_data_tiny.tsv", | ||
"train_filename": "tests/data/train_data_tiny.tsv", | ||
"field_names": ["doc_label", "text"] | ||
} | ||
}, | ||
"batcher": { | ||
"PoolingBatcher": {} | ||
} | ||
}, | ||
"model": { | ||
"DocModel": { | ||
"inputs": { | ||
"labels": { | ||
"column": "doc_label" | ||
} | ||
}, | ||
"representation": { | ||
"DocNNRepresentation": {} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"version": 17 | ||
} | ||
}, | ||
{ | ||
"original": { | ||
"task": { | ||
"DocClassificationTask_Deprecated": { | ||
"data_handler": { | ||
"columns_to_read": ["label", "raw_text"], | ||
"train_path": "tests/data/train_data_tiny.tsv", | ||
"eval_path": "tests/data/test_data_tiny.tsv", | ||
"test_path": "tests/data/test_data_tiny.tsv" | ||
} | ||
} | ||
}, | ||
"version": 16 | ||
}, | ||
"adapted": { | ||
"task": { | ||
"DocumentClassificationTask": { | ||
"data": { | ||
"source": { | ||
"TSVDataSource": { | ||
"eval_filename": "tests/data/test_data_tiny.tsv", | ||
"test_filename": "tests/data/test_data_tiny.tsv", | ||
"train_filename": "tests/data/train_data_tiny.tsv", | ||
"field_names": ["label", "raw_text"] | ||
} | ||
}, | ||
"batcher": { | ||
"PoolingBatcher": {} | ||
} | ||
}, | ||
"model": { | ||
"DocModel": { | ||
"inputs": { | ||
"labels": { | ||
"column": "doc_label" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"version": 17 | ||
} | ||
}, | ||
{ | ||
"original": { | ||
"task": { | ||
"DocClassificationTask_Deprecated": { | ||
"data_handler": { | ||
"train_path": "tests/data/train_data_tiny.tsv", | ||
"eval_path": "tests/data/test_data_tiny.tsv", | ||
"test_path": "tests/data/test_data_tiny.tsv" | ||
}, | ||
"featurizer": { | ||
"SimpleFeaturizer": { | ||
"convert_to_bytes": true, | ||
"lowercase_tokens": false | ||
} | ||
}, | ||
"model": { | ||
"representation": { | ||
"DocNNRepresentation": {} | ||
} | ||
} | ||
} | ||
}, | ||
"version": 16 | ||
}, | ||
"adapted": { | ||
"task": { | ||
"DocumentClassificationTask": { | ||
"data": { | ||
"source": { | ||
"TSVDataSource": { | ||
"eval_filename": "tests/data/test_data_tiny.tsv", | ||
"test_filename": "tests/data/test_data_tiny.tsv", | ||
"train_filename": "tests/data/train_data_tiny.tsv", | ||
"field_names": ["doc_label", "text"] | ||
} | ||
}, | ||
"batcher": { | ||
"PoolingBatcher": {} | ||
} | ||
}, | ||
"model": { | ||
"ByteTokensDocumentModel": { | ||
"inputs": { | ||
"labels": { | ||
"column": "doc_label" | ||
} | ||
}, | ||
"representation": { | ||
"DocNNRepresentation": {} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"version": 17 | ||
} | ||
} | ||
] |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.