| * Object representing information |
| * about a match's layer annotation. |
| new RegExp("^([^\/]+?)\/([^=]+?)(?:=(spans|rels|tokens))?$"); |
| * Create new match information |
| * Alternatively pass a string as |
| create : function (foundry, layer, type) { |
| return Object.create(this)._init(foundry, layer, type); |
| _init : function (foundry, layer, type) { |
| if (foundry === undefined) |
| throw new Error("Missing parameters"); |
| if (layer === undefined) { |
| if (_AvailableRE.exec(foundry)) { |
| this.foundry = RegExp.$1; |
| throw new Error("Missing parameters"); |
| if (this.type === undefined) |