Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
corpus-services
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lange, Dr. Herbert
corpus-services
Commits
fe89c792
Commit
fe89c792
authored
3 years ago
by
Lange, Dr. Herbert
Browse files
Options
Downloads
Patches
Plain Diff
add/update parameters and add concrete implementation for getTranscriptionText
parent
b1581143
Branches
Branches containing commit
No related tags found
1 merge request
!6
add feature to load criteria file from resource and place all criteria files...
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/de/uni_hamburg/corpora/validation/quest/TranscriptionChecker.java
+13
-2
13 additions, 2 deletions
...amburg/corpora/validation/quest/TranscriptionChecker.java
with
13 additions
and
2 deletions
src/main/java/de/uni_hamburg/corpora/validation/quest/TranscriptionChecker.java
+
13
−
2
View file @
fe89c792
...
@@ -3,6 +3,7 @@ package de.uni_hamburg.corpora.validation.quest;
...
@@ -3,6 +3,7 @@ package de.uni_hamburg.corpora.validation.quest;
import
com.google.common.collect.Sets
;
import
com.google.common.collect.Sets
;
import
de.uni_hamburg.corpora.*
;
import
de.uni_hamburg.corpora.*
;
import
de.uni_hamburg.corpora.utilities.quest.FrequencyList
;
import
de.uni_hamburg.corpora.utilities.quest.FrequencyList
;
import
de.uni_hamburg.corpora.utilities.quest.XMLTools
;
import
de.uni_hamburg.corpora.validation.Checker
;
import
de.uni_hamburg.corpora.validation.Checker
;
import
org.exmaralda.partitureditor.fsm.FSMException
;
import
org.exmaralda.partitureditor.fsm.FSMException
;
import
org.exmaralda.partitureditor.jexmaralda.JexmaraldaException
;
import
org.exmaralda.partitureditor.jexmaralda.JexmaraldaException
;
...
@@ -29,6 +30,9 @@ abstract class TranscriptionChecker extends Checker implements CorpusFunction {
...
@@ -29,6 +30,9 @@ abstract class TranscriptionChecker extends Checker implements CorpusFunction {
private
final
Logger
logger
=
Logger
.
getLogger
(
this
.
getFunction
());
private
final
Logger
logger
=
Logger
.
getLogger
(
this
.
getFunction
());
// List of all interesting tiers
protected
final
Set
<
String
>
tierIds
=
new
HashSet
<>();
// Regex to split tokens
// Regex to split tokens
private
final
String
tokenSeparator
=
" "
;
private
final
String
tokenSeparator
=
" "
;
...
@@ -150,7 +154,9 @@ abstract class TranscriptionChecker extends Checker implements CorpusFunction {
...
@@ -150,7 +154,9 @@ abstract class TranscriptionChecker extends Checker implements CorpusFunction {
Arrays
.
asList
(
"abcdefghijklmnopqrstuvwzyz"
.
toUpperCase
().
split
(
""
))
Arrays
.
asList
(
"abcdefghijklmnopqrstuvwzyz"
.
toUpperCase
().
split
(
""
))
);
);
}
}
if
(
properties
.
containsKey
(
"transcription-tiers"
))
{
tierIds
.
addAll
(
Arrays
.
asList
(
properties
.
getProperty
(
"transcription-tiers"
).
split
(
","
)));
}
}
}
}
}
...
@@ -185,7 +191,9 @@ abstract class TranscriptionChecker extends Checker implements CorpusFunction {
...
@@ -185,7 +191,9 @@ abstract class TranscriptionChecker extends Checker implements CorpusFunction {
abstract
List
<
Element
>
getTranscriptionTiers
(
CorpusData
cd
)
throws
JDOMException
;
abstract
List
<
Element
>
getTranscriptionTiers
(
CorpusData
cd
)
throws
JDOMException
;
abstract
String
getTranscriptionText
(
Element
tier
)
throws
JDOMException
;
public
String
getTranscriptionText
(
Element
tier
)
throws
JDOMException
{
return
XMLTools
.
showAllText
(
tier
);
}
@Override
@Override
public
Report
function
(
Corpus
c
,
Boolean
fix
)
throws
NoSuchAlgorithmException
,
ClassNotFoundException
,
FSMException
,
URISyntaxException
,
SAXException
,
IOException
,
ParserConfigurationException
,
JexmaraldaException
,
TransformerException
,
XPathExpressionException
,
JDOMException
{
public
Report
function
(
Corpus
c
,
Boolean
fix
)
throws
NoSuchAlgorithmException
,
ClassNotFoundException
,
FSMException
,
URISyntaxException
,
SAXException
,
IOException
,
ParserConfigurationException
,
JexmaraldaException
,
TransformerException
,
XPathExpressionException
,
JDOMException
{
...
@@ -228,6 +236,9 @@ abstract class TranscriptionChecker extends Checker implements CorpusFunction {
...
@@ -228,6 +236,9 @@ abstract class TranscriptionChecker extends Checker implements CorpusFunction {
params
.
put
(
"transcription-graphemes"
,
"List of transcription graphemes, separated by commas"
);
params
.
put
(
"transcription-graphemes"
,
"List of transcription graphemes, separated by commas"
);
params
.
put
(
"transcription-method"
,
"Standard transcription method used, if any. Currently HIAT, DIDA, GAT and"
+
params
.
put
(
"transcription-method"
,
"Standard transcription method used, if any. Currently HIAT, DIDA, GAT and"
+
" IPA"
);
" IPA"
);
params
.
put
(
"transcription-tiers"
,
"List of transcription tier IDs separated by commas"
);
params
.
put
(
"transcription-tier-pattern"
,
"A pattern, i.e. substring of tier IDs to identify transcription "
+
"tiers"
);
return
params
;
return
params
;
}
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment