Skip to content

Commit

Permalink
handle discussion forum posts in xml
Browse files Browse the repository at this point in the history
  • Loading branch information
J38 authored and Stanford NLP committed May 8, 2017
1 parent 319a77e commit c92068e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/edu/stanford/nlp/ling/CoreAnnotations.java
Original file line number Diff line number Diff line change
Expand Up @@ -1953,4 +1953,14 @@ public static class WikipediaEntityAnnotation implements CoreAnnotation<String>{
@Override
public Class<String> getType() { return ErasureUtils.uncheckedCast(String.class); }
}

/**
* An annotation for the posts in a document which is a collection of discusion forum posts.
*/
public static class DiscussionForumPostsAnnotation implements CoreAnnotation<List<CoreMap>>{
@Override
public Class<List<CoreMap>> getType() { return ErasureUtils.uncheckedCast(List.class); }
}


}

0 comments on commit c92068e

Please sign in to comment.