Detectors
Introduction
Basic Example
JavaScript
import {Run} from "finnlp";
Run.prototype.sentencesCount = function () {
return this.sentence.length;
}TypeScript
import * as Fin from "finnlp";
declare module "finnlp" {
export interface Run {
sentencesCount: () => number;
}
}
Fin.Run.prototype.sentencesCount = function (this:Fin.Run) {
return this.sentences.length;
};
More elaborate examples
Last updated
Was this helpful?