-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'RecordCollection' object has no attribute 'addRec' #9
Comments
Hi palermog. It is the case that this example is dated and addRec is deprecated, sorry about that, but RCfiltered.add(R) does work on my end. Can you provide the code as you're using it? Thanks! |
Closing for lack of activity. Feel free to re-open. |
This doesn't seem to work in the example notebook - I had previously tried In the meantime, filtering can currently be done by reversing the logic: RCfiltered = RC.copy()
for R in RC:
if R.title[0] != 'A':
RCfiltered.discard(R) Be sure to iterate over the original |
First, thank you so much for this package.
I have been following along with the example pages and have been able to successfully plot a network diagram and identify communities with louvain detection. However, now I am running into a problem:
I want to plot a subset of my corpus, so referred to your documentation on filtering with a for loop, like so:
However, I am getting an error message:
AttributeError: 'RecordCollection' object has no attribute ‘addRec'
I have tried changing “addRec” to “add”, since I have seen that syntax elsewhere with other record collection objects, with seemingly no success. Any suggestions to move forward?
The text was updated successfully, but these errors were encountered: