Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
ReaderBench
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
14
Issues
14
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ReaderBench
ReaderBench
Commits
866efac6
Commit
866efac6
authored
Dec 06, 2017
by
stefan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
solved bug in loading French conversations
parent
4c65ccba
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
10 deletions
+13
-10
src/main/java/data/AbstractDocument.java
src/main/java/data/AbstractDocument.java
+12
-9
src/main/java/data/cscl/Conversation.java
src/main/java/data/cscl/Conversation.java
+1
-1
No files found.
src/main/java/data/AbstractDocument.java
View file @
866efac6
...
...
@@ -237,12 +237,11 @@ public abstract class AbstractDocument extends AnalysisElement {
DialogismComputations
.
determineVoices
(
this
);
DialogismComputations
.
determineExtendedVoices
(
this
);
DialogismComputations
.
findSentimentUsingContext
(
this
);
// DialogismComputations.findSentimentUsingContext(this);
// determine voice distributions & importance
LOGGER
.
info
(
"Determine voice distributions & importance"
);
DialogismComputations
.
determineVoiceDistributions
(
this
);
DialogismComputations
.
determineExtendedVoiceDistributions
(
this
);
//
DialogismComputations.determineExtendedVoiceDistributions(this);
}
// build coherence graph
...
...
@@ -366,7 +365,12 @@ public abstract class AbstractDocument extends AnalysisElement {
fos
=
new
FileOutputStream
(
new
File
(
getPath
().
replace
(
".xml"
,
".ser"
)));
try
(
ObjectOutputStream
out
=
new
ObjectOutputStream
(
fos
))
{
out
.
writeObject
(
this
);
}
catch
(
Exception
ex
)
{
ex
.
printStackTrace
();
}
catch
(
Error
ex
)
{
ex
.
printStackTrace
();
}
}
catch
(
IOException
ex
)
{
Exceptions
.
printStackTrace
(
ex
);
}
...
...
@@ -459,8 +463,7 @@ public abstract class AbstractDocument extends AnalysisElement {
out
.
write
(
t
.
getWord
().
getLemma
()
+
" ("
);
if
(
t
.
getElement
()
instanceof
Word
)
{
out
.
write
(
t
.
getWord
().
getPOS
());
}
else
{
}
else
{
NGram
nGram
=
(
NGram
)
t
.
getElement
();
StringBuilder
sb
=
new
StringBuilder
();
for
(
Word
word
:
nGram
.
getWords
())
{
...
...
@@ -468,9 +471,9 @@ public abstract class AbstractDocument extends AnalysisElement {
}
String
nGramLemmas
=
sb
.
toString
();
sb
.
setLength
(
0
);
out
.
write
(
nGramLemmas
.
substring
(
0
,
nGramLemmas
.
length
()-
1
));
out
.
write
(
nGramLemmas
.
substring
(
0
,
nGramLemmas
.
length
()
-
1
));
}
out
.
write
(
"),"
out
.
write
(
"),"
+
Formatting
.
formatNumber
(
t
.
getRelevance
())
+
","
+
Formatting
.
formatNumber
(
t
.
getTermFrequency
())
+
","
+
Formatting
.
formatNumber
(
t
.
getSemanticSimilarity
())
+
"\n"
);
}
...
...
@@ -575,13 +578,13 @@ public abstract class AbstractDocument extends AnalysisElement {
out
.
write
(
"\nOverlap between annotated collaboration zones and Social KB model\n"
+
"P=,"
+
results
[
0
]
+
"\nR=,"
+
results
[
1
]
+
"\nF1 score=,"
+
results
[
2
]
+
"\nr=,"
+
VectorAlgebra
.
pearsonCorrelation
(
c
.
getAnnotatedCollabEvolution
(),
c
.
getSocialKBEvolution
()));
.
pearsonCorrelation
(
c
.
getAnnotatedCollabEvolution
(),
c
.
getSocialKBEvolution
()));
results
=
Collaboration
.
overlapCollaborationZones
(
c
,
c
.
getAnnotatedCollabZones
(),
c
.
getIntenseCollabZonesVoice
());
out
.
write
(
"\nOverlap between annotated collaboration zones and Voice PMI model\n"
+
"P=,"
+
results
[
0
]
+
"\nR=,"
+
results
[
1
]
+
"\nF1 score=,"
+
results
[
2
]
+
"\nr=,"
+
VectorAlgebra
.
pearsonCorrelation
(
c
.
getAnnotatedCollabEvolution
(),
c
.
getVoicePMIEvolution
()));
.
pearsonCorrelation
(
c
.
getAnnotatedCollabEvolution
(),
c
.
getVoicePMIEvolution
()));
}
results
=
Collaboration
.
overlapCollaborationZones
(
c
,
c
.
getIntenseCollabZonesSocialKB
(),
c
.
getIntenseCollabZonesVoice
());
...
...
src/main/java/data/cscl/Conversation.java
View file @
866efac6
...
...
@@ -484,7 +484,7 @@ public class Conversation extends AbstractDocument {
Collaboration
.
evaluateSocialKB
(
this
);
setVoicePMIEvolution
(
DialogismMeasures
.
getCollaborationEvolution
(
this
));
setVoiceExtendedEvolution
(
DialogismMeasures
.
getExtendedCollaborationEvolution
(
this
));
//
setVoiceExtendedEvolution(DialogismMeasures.getExtendedCollaborationEvolution(this));
// Collaboration.printIntenseCollabZones(this);
DialogismComputations
.
determineParticipantInterAnimation
(
this
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment