source: other-projects/maori-lang-detection/src/org/greenstone/atea/WebpageInfo.java@ 33652

Last change on this file since 33652 was 33651, checked in by ak19, 4 years ago
  1. Bugfix: overlappingSentences works. 2. storing numSentencesInMaor
File size: 1.4 KB
Line 
1package org.greenstone.atea;
2
3import java.util.ArrayList;
4
5public class WebpageInfo {
6
7 private int mriSentenceCount;
8
9 /** db table ids */
10 public final long webpageID;
11 public final int websiteID;
12
13 public final int totalSentences;
14
15 public final String text;
16 public final String URL;
17 public final boolean isMRI;
18
19 public final String charEncoding;
20 public final String modifiedTime;
21 public final String fetchTime;
22 public final ArrayList<SentenceInfo> singleSentences;
23 public final ArrayList<SentenceInfo> overlappingSentences;
24
25 public WebpageInfo (long webpageID, int websiteID,
26 String pageText, String pageURL, boolean isMRI, int totalSentences,
27 String charEncoding, String modifiedTime, String fetchTime,
28 ArrayList<SentenceInfo> singleSentences,
29 ArrayList<SentenceInfo> overlappingSentences)
30 {
31
32 this.webpageID = webpageID;
33 this.websiteID = websiteID;
34
35 this.totalSentences = totalSentences;
36
37 this.text = pageText;
38 this.URL = pageURL;
39 this.isMRI = isMRI;
40
41 this.charEncoding = charEncoding;
42 this.modifiedTime = modifiedTime;
43 this.fetchTime = fetchTime;
44
45 this.singleSentences = singleSentences;
46 this.overlappingSentences = overlappingSentences;
47
48 }
49
50 public void setMRISentenceCount(int count) {
51 this.mriSentenceCount = count;
52 }
53
54 public int getMRISentenceCount() { return this.mriSentenceCount; }
55}
Note: See TracBrowser for help on using the repository browser.