forked from NTMC-Community/MatchZoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
136 changed files
with
26,672 additions
and
14,294 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,15 @@ | ||
*.pyc | ||
*.txt | ||
*.log | ||
*.swp | ||
*.bak | ||
*.weights | ||
*.trec | ||
*.ranklist | ||
*.DS_Store | ||
*.mq2007 | ||
matchzoo/*.txt | ||
data/mq2008/* | ||
data/mq2007 | ||
data/toutiao | ||
data/example/* | ||
data/toutiao_jieba_new | ||
data/robust/* | ||
build/ | ||
dist/ | ||
log/* | ||
matchzoo/log/* | ||
qrels.* | ||
trec_eval | ||
matchzoo/lydev/* | ||
#matchzoo/models/*.config | ||
matchzoo/run_submit_gypsum_jobs_wikiqa.py | ||
matchzoo/run_model.py | ||
matchzoo/run_model_wraper.py | ||
log/* | ||
.idea/ |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
Metadata-Version: 1.1 | ||
Name: MatchZoo | ||
Version: 1.0 | ||
Summary: MatchingZoom is a toolkit for text matching.It was developed with a focus on enabling fast experimentation. | ||
Version: 0.2.0 | ||
Summary: MatchZoo is a toolkit for text matching. It was developed with a focus on facilitating the designing, comparing and sharing of deep text matching models. | ||
Home-page: https://github.com/faneshion/MatchZoo | ||
Author: Yixing Fan, Liang Pang, Jianpeng Hou, Jiafeng Guo, Yanyan Lan, Xueqi Cheng | ||
Author-email: [email protected] | ||
|
@@ -12,6 +12,10 @@ Platform: UNKNOWN | |
Classifier: Development Status :: 3 - Alpha | ||
Classifier: Environment :: Console | ||
Classifier: Operating System :: POSIX :: Linux | ||
Classifier: Programming Language :: Python :: 2.7 | ||
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence | ||
Classifier: License :: OSI Approved :: BSD License | ||
Classifier: License :: OSI Approved :: Apache License | ||
Classifier: Programming Language :: Python :: 2.7 | ||
Classifier: Programming Language :: Python :: 3 | ||
Classifier: Programming Language :: Python :: 3.4 | ||
Classifier: Programming Language :: Python :: 3.5 | ||
Classifier: Programming Language :: Python :: 3.6 |
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 |
---|---|---|
|
@@ -3,3 +3,5 @@ tensorflow >= 1.1.0 | |
nltk >= 3.2.3 | ||
numpy >= 1.12.1 | ||
six >= 1.10.0 | ||
h5py >= 2.7.0 | ||
tqdm >= 4.19.4 |
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 |
---|---|---|
@@ -1,5 +1,39 @@ | ||
# note | ||
from pair_generator import PairGenerator | ||
from pair_generator import DRMM_PairGenerator | ||
from list_generator import ListGenerator | ||
from list_generator import DRMM_ListGenerator | ||
# note | ||
from __future__ import absolute_import | ||
import six | ||
from keras.utils.generic_utils import deserialize_keras_object | ||
|
||
from .point_generator import PointGenerator | ||
from .point_generator import Triletter_PointGenerator | ||
from .point_generator import DRMM_PointGenerator | ||
|
||
from .pair_generator import PairGenerator | ||
from .pair_generator import Triletter_PairGenerator | ||
from .pair_generator import DRMM_PairGenerator | ||
from .pair_generator import PairGenerator_Feats | ||
from .list_generator import ListGenerator | ||
from .list_generator import Triletter_ListGenerator | ||
from .list_generator import DRMM_ListGenerator | ||
from .list_generator import ListGenerator_Feats | ||
|
||
def serialize(generator): | ||
return generator.__name__ | ||
|
||
def deserialize(name, custom_objects=None): | ||
return deserialize_keras_object(name, | ||
module_objects=globals(), | ||
custom_objects=custom_objects, | ||
printable_module_name='loss function') | ||
|
||
def get(identifier): | ||
if identifier is None: | ||
return None | ||
if isinstance(identifier, six.string_types): | ||
identifier = str(identifier) | ||
return deserialize(identifier) | ||
elif callable(identifier): | ||
return identifier | ||
else: | ||
raise ValueError('Could not interpret ' | ||
'loss function identifier:', identifier) | ||
|
Oops, something went wrong.