changed filter relation on SubRelType
This commit is contained in:
parent
5b76321d9c
commit
5f651f2316
|
@ -112,13 +112,11 @@ object SparkConvertRDDtoDataset {
|
|||
"opencitations".equalsIgnoreCase(k.getValue)
|
||||
)
|
||||
)
|
||||
.filter(r => r.getRelClass != null && r.getRelClass.equalsIgnoreCase(filterRelation))
|
||||
.filter(r => r.getSubRelType != null && r.getSubRelType.equalsIgnoreCase(filterRelation))
|
||||
spark.createDataset(rddRelation).as[Relation].write.mode(SaveMode.Overwrite).save(s"$relPath")
|
||||
} else {
|
||||
|
||||
val relationSemanticFilter = List(
|
||||
// "cites",
|
||||
// "iscitedby",
|
||||
"merges",
|
||||
"ismergedin",
|
||||
"HasAmongTopNSimilarDocuments",
|
||||
|
|
Loading…
Reference in New Issue