Aug-31-2017, 01:28 PM
Hello!
Are there people here who know NLP? I have to do a parsing: the goal is to create a grammar rules that will be applied in a corpus. I have a question: is it possible to have a list within a grammar?
Example (it isn't a code, just an example of the algorithm):
Are there people here who know NLP? I have to do a parsing: the goal is to create a grammar rules that will be applied in a corpus. I have a question: is it possible to have a list within a grammar?
Example (it isn't a code, just an example of the algorithm):
1) Open the text to be analyzed
2) Write the grammatical rules (just an example):
grammar("""
S -> NP VP
NP -> DET N
VP -> V N
DET -> list_det.txt
N -> list_n.txt
V -> list.txt""")
3) Print the result with the entries that obey this grammarIt's possible? Thanks!! =)
