@@ -71,18 +71,17 @@ protected void load() {
71
71
@ Override
72
72
public String generateText (PersonSummary member , TreeSet <Integer > tags , Properties prop ) {
73
73
StringBuffer content = null ;
74
- // determine the number of sentence
74
+ // determine the number of sentences
75
75
Double numsentences = Double .valueOf (lengthtweet .nextDouble (this .random ));
76
76
for (int i = 0 ; i < numsentences ; ++i ) {
77
77
Double numwords = Double .valueOf (lengthsentence .nextDouble (this .random ));
78
- // depenen de la distribució de number hashtags per sentence int numhashtags; _TRANSLATE
79
- //int numhashtags = funciondistribuciohashtags(numwords);
78
+ // the number of hashtages depends on the number of words in the
79
+ // sentence
80
80
int numhashtags = (int ) (numwords * 0.4 );
81
81
for (int j = 0 ; j < numhashtags ; ++j ) {
82
82
content .append (" " + hashtag .nextDouble (this .random ));
83
83
}
84
- // depenen de la distribució de number sentiment words per sentence int numhashtags; _TRANSLATE
85
- //int numsentimentswords = funciondistribuciosentimentswords(numwords);
84
+ // the number of sentiment words depends on the number of words in the sentence
86
85
int numsentimentswords = (int ) (numwords * 0.4 );
87
86
for (int q = 0 ; q < numhashtags ; ++q ) {
88
87
content .append (" " + sentiment .nextDouble (this .random ));
@@ -91,10 +90,7 @@ public String generateText(PersonSummary member, TreeSet<Integer> tags, Properti
91
90
for (int j = 0 ; j < numwords ; ++j ) {
92
91
content .append (" " + popularword .nextDouble (this .random ));
93
92
}
94
-
95
93
}
96
- //per cada frase mirar numero de paraules mirar numero de hashtags _TRANSLATE
97
- content .toString ();
98
94
return content .toString ();
99
95
}
100
96
0 commit comments