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
{ | |
"description": "The additional dimensions used for BiblioWeb events", | |
"title": "bc_web_event", | |
"type": "object", | |
"properties": { | |
"containerName": { | |
"type": "string" | |
}, | |
"contentType": { | |
"type": "string" |
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
{ | |
"description": "The Environment in which an event happened", | |
"title": "bc_environment", | |
"type": "object", | |
"properties": { | |
"productId": { | |
"type": "string" | |
}, | |
"environmentId": { | |
"type": "string" |
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
{ | |
"description": "The additional dimensions used for BiblioWeb events", | |
"title": "v3_web_event", | |
"type": "object", | |
"properties": { | |
"containerName": { | |
"type": "string" | |
}, | |
"contentType": { | |
"type": "string" |
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
{ | |
"description": "The library for which the event occurred", | |
"title": "bc_library", | |
"type": "object", | |
"properties": { | |
"siteId": { | |
"type": "string" | |
}, | |
"site": { | |
"type": "string" |
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
{ | |
"description": "The library for which the event occurred", | |
"title": "bc_library", | |
"type": "object", | |
"properties": { | |
"siteId": { | |
"type": ["string", "null"], | |
"maxLength": 255 | |
}, | |
"site": { |
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
import numpy as np | |
import sys, os | |
# Edit the paths as needed: | |
caffe_root = '../caffe/' | |
sys.path.insert(0, caffe_root + 'python') | |
import caffe | |
# Path to your combined net prototxt files: |
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
def encode(input): | |
""" | |
Returns the Run Length Encoding for an input string. | |
""" | |
if not input: | |
return '' | |
result = [] | |
count = 1 | |
prev = input[0] |