This repository was archived by the owner on Apr 28, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +8
-5
lines changed Expand file tree Collapse file tree 4 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 1
- requests==2.22 .0
1
+ requests==2.23 .0
2
2
requests_futures==0.9.9
3
3
fuzzy_matcher==0.1.0
4
4
fbmessenger==6.00
Original file line number Diff line number Diff line change @@ -290,7 +290,7 @@ async def model_fingerprint(file_importer: "TrainingDataImporter") -> Fingerprin
290
290
# bf mod
291
291
config = await file_importer .get_config ()
292
292
domain = await file_importer .get_domain ()
293
- stories = await file_importer .get_stories ()
293
+ stories_hash = await file_importer .get_stories_hash ()
294
294
nlu_data = await file_importer .get_nlu_data ()
295
295
296
296
nlu_config = await file_importer .get_nlu_config ()
@@ -311,7 +311,7 @@ async def model_fingerprint(file_importer: "TrainingDataImporter") -> Fingerprin
311
311
FINGERPRINT_NLG_KEY : get_dict_hash (templates ),
312
312
FINGERPRINT_NLU_DATA_KEY : {lang : hash (nlu_data [lang ])
313
313
for lang in nlu_data },
314
- FINGERPRINT_STORIES_KEY : hash ( stories ) ,
314
+ FINGERPRINT_STORIES_KEY : stories_hash ,
315
315
FINGERPRINT_TRAINED_AT_KEY : time .time (),
316
316
FINGERPRINT_RASA_VERSION_KEY : rasa .__version__ ,
317
317
}
Original file line number Diff line number Diff line change @@ -111,8 +111,6 @@ def predict_action_probabilities(
111
111
112
112
idx = domain .index_for_action (ACTION_LISTEN_NAME )
113
113
prediction [idx ] = 1
114
- else :
115
- logger .debug ("Predicted intent is not handled by BotfrontMappingPolicy." )
116
114
return prediction
117
115
118
116
def persist (self , path : Text ) -> None :
Original file line number Diff line number Diff line change @@ -73,6 +73,11 @@ async def get_stories(
73
73
)
74
74
return StoryGraph (story_steps )
75
75
76
+ async def get_stories_hash (self ):
77
+ # Use a file hash of stories file to figure out Core fingerprint, instead of
78
+ # storygraph object hash which is unstable
79
+ return get_file_hash (self ._story_files [0 ])
80
+
76
81
async def get_nlu_data (self , languages = True ) -> Dict [Text , TrainingData ]:
77
82
language = None
78
83
if isinstance (languages , str ):
You can’t perform that action at this time.
0 commit comments