Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
factchecksnlp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Himadri Kumari
factchecksnlp
Commits
eb445b3c
There was an error fetching the commit references. Please try again later.
Commit
eb445b3c
authored
Jan 17, 2020
by
RahulSherikar
Browse files
Options
Downloads
Patches
Plain Diff
added few categories
parent
56584cd0
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/Annotator.java
+61
-1
61 additions, 1 deletion
src/main/java/Annotator.java
with
61 additions
and
1 deletion
src/main/java/Annotator.java
+
61
−
1
View file @
eb445b3c
...
...
@@ -261,7 +261,7 @@ public class Annotator {
}
}
else
if
(
input
.
contains
(
"stars
is
"
))
else
if
(
input
.
contains
(
"stars"
))
{
input
=
input
.
replace
(
"."
,
""
);
String
[]
spl
=
input
.
split
(
" stars "
);
...
...
@@ -362,6 +362,66 @@ public class Annotator {
return
"false"
;
}
}
else
if
(
input
.
contains
(
"author is"
))
{
input
=
input
.
replace
(
"."
,
""
);
String
[]
spl
=
input
.
split
(
" author is "
);
String
rtr
=
impl
.
wiki
(
spl
[
0
]);
String
content
=
impl
.
contentOfInfobox
(
rtr
);
content
=
content
.
replaceAll
(
"[^aA-zZ\\s]"
,
""
);
content
=
content
.
replace
(
"["
,
""
);
content
=
content
.
replace
(
"]"
,
""
);
if
(
content
.
contains
(
spl
[
1
]))
{
return
"true"
;
}
else
{
return
"false"
;
}
}
else
if
(
input
.
contains
(
"author."
))
{
input
=
input
.
replace
(
"."
,
""
);
String
[]
spl
=
input
.
split
(
" is "
);
String
rtr
=
impl
.
wiki
(
spl
[
1
]);
String
content
=
impl
.
contentOfInfobox
(
rtr
);
content
=
content
.
replaceAll
(
"[^aA-zZ\\s]"
,
""
);
content
=
content
.
replace
(
"["
,
""
);
content
=
content
.
replace
(
"]"
,
""
);
if
(
content
.
contains
(
spl
[
0
]))
{
return
"true"
;
}
else
{
return
"false"
;
}
}
else
if
(
input
.
contains
(
"office is"
))
{
input
=
input
.
replace
(
"."
,
""
);
String
[]
spl
=
input
.
split
(
" office is "
);
String
rtr
=
impl
.
wiki
(
spl
[
0
]);
String
content
=
impl
.
contentOfInfobox
(
rtr
);
content
=
content
.
replaceAll
(
"[^aA-zZ\\s]"
,
""
);
content
=
content
.
replace
(
"["
,
""
);
content
=
content
.
replace
(
"]"
,
""
);
if
(
content
.
contains
(
spl
[
1
]))
{
return
"true"
;
}
else
{
return
"false"
;
}
}
else
{
...
...
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