Skip to content

Commit

Permalink
fix nlp caching issue
Browse files Browse the repository at this point in the history
  • Loading branch information
nate-parrott committed Nov 30, 2014
1 parent 4b2231e commit 0dfdfa7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions FlashlightApp/EasySIMBL/Flashlight-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>0.9</string>
<string>0.91</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>18</string>
<string>19</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.utilities</string>
<key>LSMinimumSystemVersion</key>
Expand Down
2 changes: 1 addition & 1 deletion NaturalCommands/parse_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def create_example_phrases():

return (example_phrases, plugins_to_always_invoke, regexes)

cache_path = "NLPModel.pickle"
cache_path = os.path.join(plugin_dir, "NLPModel.pickle")
cache_max_age = 20 # 20 sec
(example_phrases, plugins_to_always_invoke, regexes) = get_cached_data_structure(cache_path, cache_max_age, create_example_phrases)

Expand Down

0 comments on commit 0dfdfa7

Please sign in to comment.