Skip to content

Commit

Permalink
Temporarily store wIds for aTs only
Browse files Browse the repository at this point in the history
  • Loading branch information
LFDM committed Oct 22, 2014
1 parent 6c84ef1 commit bd5a3a5
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion app/js/arethusa/treebank_persister.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,15 @@ angular.module('arethusa').factory('TreebankPersister', [

function ArtificialNode(id, insertionId, type) {
this._id = id;
this._insertion_id = insertionId;

// We have to strip the sentence id for now, as the insertionId
// won't make it through Perseids validation process.
// It won't affect the import, as we're catching such cases there
// for backwards compatibility anyway.
//
// Mind that this is a temporal solution and tightly couples this
// process to the current id formatting.
this._insertion_id = insertionId.split('-')[1];
this._artificial = type || 'elliptic';
}

Expand Down

0 comments on commit bd5a3a5

Please sign in to comment.