Skip to content
Newer
Older
100755 53 lines (47 sloc) 1.83 KB
95a9583 @dmnapolitano Many major changes happening...now does parsing and named entity reco…
dmnapolitano authored
1 namespace java CoreNLP
2 namespace py corenlp
3
4 struct ParseTree
5 {
6 1:string tree,
7 2:double score
8 }
9
10 struct NamedEntity
11 {
12 1:string entity,
13 2:string tag,
14 3:i32 startOffset,
d7f63b5 @dmnapolitano NER now returns the index corresponding to the sentence each named en…
dmnapolitano authored
15 4:i32 endOffset,
16 5:i32 sentence_number
95a9583 @dmnapolitano Many major changes happening...now does parsing and named entity reco…
dmnapolitano authored
17 }
18
74692ff @dmnapolitano Now with part-of-speech tagging :smile:
dmnapolitano authored
19 struct TaggedToken
20 {
21 1:string tag,
22 2:string token
23 }
24
95a9583 @dmnapolitano Many major changes happening...now does parsing and named entity reco…
dmnapolitano authored
25 exception SerializedException
26 {
27 1: required binary payload
28 }
29
30 service StanfordCoreNLP
31 {
32 void ping(),
062f5f8 @dmnapolitano Whoa, MAJOR fix to NER NamedEntity object creation; MUCH simpler code…
dmnapolitano authored
33 oneway void zip(),
95a9583 @dmnapolitano Many major changes happening...now does parsing and named entity reco…
dmnapolitano authored
34 list<ParseTree> parse_text(1:string text, 2:list<string> outputFormat),
35 ParseTree parse_tokens(1:list<string> tokens, 2:list<string> outputFormat),
94591b1 @dmnapolitano Can now generate a parse tree from a pre-POS-tagged sentence.
dmnapolitano authored
36 ParseTree parse_tagged_sentence(1:string taggedSentence, 2:list<string> outputFormat, 3:string divider),
8a0a81b @dmnapolitano (1) log4j is now set up in a useful way :grinning:, (2) made start_server.sh l…
dmnapolitano authored
37 string lexicalize_parse_tree(1:string tree),
f30f59b @dmnapolitano I think NER is done.
dmnapolitano authored
38 list<NamedEntity> get_entities_from_text(1:string text),
39 list<NamedEntity> get_entities_from_tokens(1:list<string> tokens),
062f5f8 @dmnapolitano Whoa, MAJOR fix to NER NamedEntity object creation; MUCH simpler code…
dmnapolitano authored
40 list<NamedEntity> get_entities_from_trees(1:list<string> trees),
d29ad8f @dmnapolitano Coref might be done
dmnapolitano authored
41 list<string> resolve_coreferences_in_text(1:string text),
42 list<string> resolve_coreferences_in_tokenized_sentences(1:list<string> sentencesWithTokensSeparatedBySpace),
0bd2e64 @dmnapolitano Now with limited Tregex-ability.
dmnapolitano authored
43 list<string> resolve_coreferences_in_trees(1:list<string> trees),
74692ff @dmnapolitano Now with part-of-speech tagging :smile:
dmnapolitano authored
44 list<string> evaluate_tregex_pattern(1:string parseTree, 2:string tregexPattern),
45 list<list<TaggedToken>> tag_text(1:string untokenizedText),
854f872 @dmnapolitano Now with the ability to tokenize arbitrary text and untokenize a sing…
dmnapolitano authored
46 list<TaggedToken> tag_tokenized_sentence(1:list<string> tokenizedSentence),
47 string untokenize_sentence(1:list<string> sentenceTokens),
0e66727 @dmnapolitano Can now use shift-reduce parser on pre-POS-tagged sentences. :smile:
dmnapolitano authored
48 list<list<string>> tokenize_text(1:string arbitraryText),
584a121 @dmnapolitano Can now run shift-reduce on arbitrary, untokenized text.
dmnapolitano authored
49 ParseTree sr_parse_tagged_sentence(1:string taggedSentence, 2:list<string> outputFormat, 3:string divider),
c131ee6 @dmnapolitano Can now generate shift-reduce parses on single tokenized sentences. C…
dmnapolitano authored
50 list<ParseTree> sr_parse_text(1:string untokenizedText, 2:list<string> outputFormat),
51 ParseTree sr_parse_tokens(1:list<string> tokenizedSentence, 2:list<string> outputFormat)
95a9583 @dmnapolitano Many major changes happening...now does parsing and named entity reco…
dmnapolitano authored
52 }
Something went wrong with that request. Please try again.