4
에서 추가 정보 (능동/수동, 시제를 ...) 받기. 그러나 나는 텍스트에서 더 많은 정보를 얻고 싶다. 문장의 긴장이나 능동태/수동형과 같은 추가 정보를 얻을 가능성이 있습니까?나는 음성의 부품을 결정하기위한 스탠포드 술래를 사용 해요 술래
지금까지 나는 아주 기본의 PoS-태그 방식 사용하고 있습니다 : 당신은 다양한 펜 태그에서 긴장 정보를 얻을 수 있습니다
List<List<TaggedWord>> taggedUnits = new ArrayList<List<TaggedWord>>();
String input = "This sentence is going to be future. The door was opened.";
for (List<HasWord> sentence : MaxentTagger.tokenizeText(new StringReader(input)))
{
taggedUnits.add(tagger.tagSentence(sentence));
}
는 당신의 도움을 주셔서 감사합니다! "능동/수동 감지"독일어를 사용하는 경우 그러나, 나는 붙어있어 -> http://stackoverflow.com/questions/19531208/how-to-use-stanford-corenlp-with-a-non-english-parse-model –
이의 문서를 읽고,이 nsubjpass 관계가 모든 수동태 문장의 기능이 될 것 같다 - http://nlp.stanford.edu/nlp/javadoc/javanlp/edu/stanford/nlp/trees/EnglishGrammaticalRelations.html# NOMINAL_PASSIVE_SUBJECT – JasTonAChair