123456789101112131415161718192021222324252627282930313233343536373839404142 |
- /**
- * An object representing a transcribed word, with some additional information
- * @param word the word
- * @param begin the time the word was started being uttered
- * @param end the time the word stopped being uttered
- */
- export default class Word {
- /**
- * @param word the word
- * @param begin the time the word was started being uttered
- * @param end the time the word stopped being uttered
- */
- constructor(word, begin, end) {
- this.word = word;
- this.begin = begin;
- this.end = end;
- }
-
- /**
- * Get the string representation of the word
- * @returns {*} the word as a string
- */
- getWord() {
- return this.word;
- }
-
- /**
- * Get the time the word started being uttered
- * @returns {*} the start time as an integer
- */
- getBeginTime() {
- return this.begin;
- }
-
- /**
- * Get the time the word stopped being uttered
- * @returns {*} the end time as an integer
- */
- getEndTime() {
- return this.end;
- }
- }
|